I believe AI significantly improved my development productivity, but one thing it cannot guarantee is code quality. I am saying this because there are a couple of examples, but the most recent one is the pagination on this website's blog page. I implemented that last weekend with AI. Because I built that website from scratch, my first focus was a working live website.
Long story short, I didn't have interfaces in the first place. Now the blog has grown to a point where it was hard to manage the posts related operations for both public- and admin-facing using the same class. Still, AI didn't bother and added the required overloads to the existing single service class with is not close to a good quality code. Once the changes were implemented, I had to make another revision to create interfaces for both public- and admin-related post features, which proves my point that it's on the developer how we use AI.
I believe that AI can generate the code, but engineers still need to define the problem, understand the domain, make the architectural decisions, and take ownership of the results.
AI cannot guaranteed Code Quality, it can be an exceptional implementer, but the architect still needs to be human