After a stellar 2023, the stock market has continued to cushion the impact of stubborn inflation and higher interest rates this year. The S&P 500 is up more than 12% year-to-date, to a record high, surpassing the roughly 10% average annual gain in the blue-chip index since 1957 in less than six months. A strong …