AI-driven layoffs are failing to generate returns, landmark Gartner study finds.