You are comparing things which are not equal.
The currently semi-bad low-grade coders will get pushed out and replaced with even WORSE ones.
The worse ones will be the ones responsible for choosing and approving the code which was generated by AI.
So let's say there is a "Q(c)" which measures worst possible quality of code c.
If the person who monitors this things has a bad worst possible quality Q(c), the code will also have a bad worst possible quality Q(c).