I feel like you're talking about programs here rather than code. A program that behaves well is not necessarily built with good code.
I can see an LLM producing a good program with terrible code that's hard to grok and adjust.