Having been a coder for decades before AI came on the scene, I don't understand how inexperienced programmers could possibly write a serious amount of working code with AI.
It's wrong, like, at least half the time, but as an experienced coder, I can look at the "code" it generated and know what it was trying to do, and then write it correctly. I do find AI useful when I'm not sure how to go about solving a particular code-related issue, but ... it just gives me something to think about, not an answer I can use directly.