The S&P 500 has survived 17 recessions, 2 world wars, and countless panics — and still compounded 10%.