Earlier quoted context omitted.
It only hallucinates if you use it wrong. Give it enough requirements, context, keep an eye on all it does (like it were a junior developer), and you will get awesome results. AI code assistants are a fantastic tool that can make you 10-100x more productive provided that you know how to use them. Most of the people saying the kind of things you say don't know how to properly use an AI code assistant.
> It only hallucinates if you use it wrong Sorry but this is demonstrably false. For starters, see the "R's in strawberry" meme.
Ask it to create a program that counts the R's in any text. Now ask it to do it in 20 different languages. It'll get them right immediately.
It's like me asking you who was the proposed King for Finland and calling you a bad programmer because you don't know.