Although I agree, I think AI code generation is the follow up mistake. The original mistake was to offshore coding to fire qualified engineers.
Not all of offshore is terrible, that'd be a dumb generalization, but there are some terrible ones out there. A few of our clients that opted to offshore are being drowned is absolute trash code. Given that we always have to clean it up anyway, I can see the use-case for AI instead of that shop.