It's simply better than a human could have produced in the same time. If it works who cares how clean it is like this is what I don't get about programmers they're so obsessed with cleanness and it doesn't matter it's so unimportant to the end goal yeah I get that maintenance of the program would be a pain but the AI is going to do that so who cares.
I do sort of feel that this community is so obsessed with hating AI that they don't give it the benefit of the doubt when it actually achieve things.
The problem with AI is not the product itself it's the way that people use it like let's not lose sight to that, that's not give all the tech Bros ammunition by trying to claim that everything AI does is terrible and bad and awful simply because it was the AI that did it.