Amazon announced a reorganization that will result in the elimination of 14,000 jobs — and said AI is a leading cause.