The S&P 500 is enjoying one of the best years since 1927, thanks to the AI buzz