Funny I've seen the opposite. I want it to rewrite half the codebase to do things properly. A human shouldn't do that because of the effort, but it's no issue for AI.
However it very often says "that's too big of a change so I'll do this workaround instead" which is not what I want at all.
But I agree they sometimes implement things that don't actually make sense to do. Mostly you can solve that by just asking how to program / code works at a high level without needing to read every line.