It also matters a bit where the reputation cost hits. Layoffs can spook investors because it makes it look like the company is doing poorly. If the reputation hit for ai is to non-investors, then it probably matters less.
It's not about consumer reputation, it's about the financial reputation. Slashing headcount can look desperate. AI makes it sound innovative, or at least that's the idea.