That guy has never seen AI code before. It regularly gets even simple stuff wrong. Was he especially good is when it gives made up crap. Or it tells you a method or function you can use but doesn't tell you where it got that. And then you're like "oh wow I didn't realize that was available" and then you try it and realize that's not part of the standard library and you ask it "where did you get that" and it's like "oh yeah sorry about that I don't know".
My absolute favorite is when I asked copilot to code a UI button and it just pasted "// the UI element should do (...) but instead it is doing (...)" a dozen times.
Like, clearly someone on stackoverflow asked for help, got used for training data, and confused copilot