Scores of firms have cited artificial intelligence as a reason for laying off workers, but experts say this misunderstands AI’s utility.