A prediction engine struggles at coming up with novel ideas? Astounding!
If you are of the opinion "coding is easy with AI", it's because you haven't tried to do something novel with it.
It's been solved, the AI has been trained on it, and the next most likely word based on prompt & context is correct because someone else has already figured it out. Repeat until the AI has generated a function that works