Excluding dividends is a pretty big asterisk, including them you're back to even within 6.5 years.
For what it's worth, the S&P dividend yield is typically 1-2%, and below inflation for the majority of relevant years. So you are not ahead in real dollars until roughly the dates I mentioned.