I've seen AI writing better code than many senior developers because the person using AI was better at directing. So the point about only humans creating "clean code" is nonsense. Most junior and even senior developers don't create clean code.
Have you ever tested an app written by AI after reading its code ?