AI-related stocks, including the 'Magnificent 7,' have significantly impacted market gains, driving surges in the S&P 500.