I just do not believe in a worldview where almost all CEOs of large tech companies are incompetent. Whatever the explanation for layoffs is, incompetence ain't it.
Greed would still try and avoid the need for a layoff because they are quite expensive. Google’s 6+ weeks salary + 6 months health insurance isn’t cheap.