Yaccarino’s departure comes one day after Musk’s artificial intelligence chatbot Grok repeatedly made antisemitic comments.