The S&P 500 ended lower on Wednesday, pulled down by declines in JPMorgan, Blackstone and other financials, while Nvidia and Alphabet lifted the Nasdaq as investors shifted toward AI-related stocks.