So far, 2026 has been a solid year for stock market investors, with the benchmark S&P 500 (SNPINDEX: ^GSPC) up around 11% year to date. This follows even bigger gains of 17.88% in 2025 and 25.02% in 2024. Optimism is largely being driven by generative artificial intelligence (AI), a technology trend that has seen many…