This happened to me last week. I went back and forth with the AI for 2 days. My company then ran out of tokens for the months, so I just did it myself and came up with a solution that I feel is a lot more straightforward. That, plus all finishing touches, and testing were done by noon.
I find more and more that AI turns into a procrastination machine. I’ve only found it useful for things that are so basic the AI one-shot it, low stakes (logic issues won’t be a major issue), and completely independent, where I don’t really have to worry about maintaining it. For anything else I’m finding more and more than it’s faster to not try and have AI do anything.