Some people would argue that this is the best way to use AI as it exists today. Generate a POC and then if that POC makes sense, then rebuild it from scratch by hand. Maybe you can still use AI for a bit of boilerplate generation, but you should write all of the business logic and verify it by hand.
Personally, I'm starting to lean more and more towards this approach.
Though, I have to admit, for a well defined bug ticket, AI can be super useful to knock those out.
I find AI useful for boilerplate stuff, very generic code like mappers etc.
For more complex stuff, I find that the best workflow is usually treating AI like a kind of stupid, but very motivated intern you're pair programming with. Nothing unsupervised and you might have to touch up/do manually the really critical parts, but it can help with a lot of the bitchwork.