We break down which companies are at risk and which could thrive in the AI era.