Despite war volatility and AI concerns, the S&P 500 still managed to jump 9.5% year to date.