The Dow Jones Industrial Average climbed back above 50,000 on Tuesday, closing at 50,018.70 after gaining 423.39 points, or 0.85%, as investors rotated out of technology stocks and into health care, retail and consumer names.

The blue-chip index's return above the round-number milestone came on a day of sharp divergence across Wall Street. The S&P 500 slipped 0.50% to 7,201.09, while the Nasdaq Composite fell 1.48% to 23,733.54 as the previous session's artificial-intelligence rally faded. The Russell 2000 rose 0.57%.

Nvidia fell 5.86% to $155.38, giving back much of the gain from Monday's surge that followed Jensen Huang's return as chief executive. The Philadelphia Semiconductor Index plunged 7.88%, and Analog Devices dropped 17.4% in heavy selling across chip stocks.

Money instead flowed into defensive and value sectors. Health care stocks jumped after Sanofi agreed to buy Insmed for $41 billion, lifting Insmed about 14%, while Amgen, Merck, Vertex and Regeneron each rose roughly 5%. Nike and Target also advanced as investors rotated into consumer names.

The rotation was supported by stronger-than-expected economic data: the Conference Board's consumer confidence index jumped to 103.3 in November, its highest level since January and well above the 92.2 forecast. The reading, already covered in a separate report, pointed to resilient household sentiment heading into the holiday shopping season.

Traders now turn to Wednesday's 8:30 a.m. ET releases of October inflation and gross domestic product data, along with Deere earnings before the opening bell. U.S. markets will be closed on Thursday for Thanksgiving and close early, at 1 p.m. ET, on Friday.