Musk kept his cool, and OpenAI’s lawyer bulldozed him with piercing questions about his motivations for suing the company.