Microsoft just fired 10,000 employees as a cost-saving measure, and then announced it is making a multiyear, multibillion-dollar investment in OpenAI, the San Francisco artificial intelligence lab behind the experimental online chatbot ChatGPT.