Elon Musk said he would pull his $97.4 billion bid for the nonprofit that controls OpenAI if the ChatGPT owner ended plans to convert to a for-profit firm.