Google is investing up to $40 billion in a company that is beating Gemini. That is the point.