The S&P 500 is trading just shy of record territory, even as most individual stocks are struggling.