In my experience, AI writes better code (and tests) than most developers and much worse architecture than a senior engineer.
I suspect the architecture is fine, really, but AI is so comfortable juggling 19 balls that it’s architecture never needs simplification and clarity. But as a human reading it, it’s just a mess and humans need much more coherence and encapsulation.