There is always the exception, but most of the time is pretty good. At least on my experience, the way AI writes code that is a LOT easier to review/understand than how a human writes. To me it is not even a question of who is better. AI has already won that a couple months ago. Now its about making sure the AI is doing what the dev wants it to do in the way he/she wants it to behave.