Amazon's plan to invest up to $50 billion in OpenAI could depend on whether the AI developer goes public or achieves artificial general intelligence (AGI).