People need to decide if their counter to AI making programmers obsolete is "current generation AI is buggy, and this will not improve until I retire" or "I only spend coding 5% of my time so it doesn't matter if AI can instantly replace my coding".
And come on: AI definitely will become better as time goes on.
It gets better when the AI provider trains a new model. It doesn't learn from the feedback of the person interacting with it, unlike a human.