Agreed. Current AI tech doesn't think. It just gives you a sort of average or statistical amalgam of it's inputs. This works if the answer you need is one of the most commonly talked abou (or coded) ones. It is completely useless for solving problems and doing new things.
Of course, most code isn't doing new things. It's doing old things in new ways. This is why libraries and frameworks exist. This is also where AI can have an impact. Unfortunately, part of that impact is that we will get gigantic code bases that no one understands. Adding new features and fixing bugs will get harder and harder, even for the AI. Maintainability is an essential part of any commercially viable code base, and AI is going to destroy it. Any programmer who has ever taken a job where everyone who knows how the code actually works has quite will understand the severity of this problem. Everyone else is going to suffer.