Nvidia Corp. is nearing a deal to invest $20 billion in OpenAI as part of its latest funding round, according to people familiar with the matter, …