Basically it tricks you into making the code less maintainable, so while it seems to boost productivity, it's just delaying huge failures.

Exactly this, IMO. We are in a race to see whether the mountain of technical debt that AI is creating grows faster than AI's ability to whittle it down later.