Large tech companies have laid off staff, citing advances in AI. Experts say reality is more complicated.