Leaders using AI to justify workforce cuts are missing the real opportunity to build more capable organizations.