AI isn't contributing to the layoffs though

It absolutely is. The funding for it, not the product itself.