As companies blame artificial intelligence for layoffs, skeptics wonder whether that explanation captures the full picture. Share