SpaceX selected Goldman Sachs to lead its planned IPO as it races toward the public market ahead of OpenAI and Anthropic.