AI is changing how businesses think about hiring, but eliminating junior roles can create problems that outweigh the short-term savings.