S&P 500 is near a record, but many of its stocks are in a bear market