Amazon said it would cut 14,000 corporate staffers this year in a mass layoff aimed at readying the company for wide adoption of AI technology.