Google's projected AI capex spend is $170-180 billion for this year. It's unreasonable to think AI would not be a reason for companies to consider layoffs.
1. Google is getting so much productivity out of their AI that they need fewer people.
2. Google is spending so much on AI they can’t afford to keep the people they need.
3. Google is spending so much on AI that they can't afford to keep paying people, but they are ok with this because they are convinced the AI investment will replace the people at an eventual cost savings.
I guess some of that infrastructure will get used for AI R&D, but there are other R&D costs such as salaries that wouldn't be included in the figure.