Which mythical AI are you using that does this?
All the ones I've tried feel like little toddlers that completely miss the point, forget half the requirements mid way, are adamant that they are completely correct then have the gall to act an authority when you point out glaring issues.
I take way less time doing it myself vs coaxing an AI to get a decent solution that catches all edge cases.
AI for me is only useful on subjects I know nothing about, and even then, given I know how bad it is in subjects I know everything about I take everything it says with a megacrystal of salt.