U.S. stock indexes were split as gains for oil-and-gas producers helped offset drops for Nvidia and other Big Tech companies.