The S&P 500 gained less than 0.1% on Thursday, Dec. 28, 2023, eking out a small advance after oscillating just beneath i