It's easy to look at the 30,000 recent Amazon layoffs and blame AI for taking those jobs. But that's not the whole story.