And this is also a potentially very dangerous difference between AI generated code and legacy code written by humans:
Legacy code might look messy and incomprehensible at first, but any part of it very probably was written for real reasons and in logical steps, and therefore is intelligible (though with effort).
On the other hands, AI generated code will look plausible, especially to the person who wrote the prompt, but in fact it was never understood by anyone.
Yet to the engineering manager or laymen, both look the same.
And this difference is going to bite much harder if the code runs for some longer time and is used in critical infrastructure systems.