AI may replace programmers someday, but today is most certainly not that day. I've tried AI code generation to help me a couple of times when internet search was coming up with wrong answers - the AI came up with exactly the same wrong answers, it just was more assertive in the incorrect answers it gave. To put it another way, AI for programming at least, is currently nothing more than a fancy internet search algorithm.