You can cherry pick almost any dates to make any asset class look good. For some reason, gold bugs seem to be the most prone to it.
How about rerunning your numbers with a starting point in Jan, 1982? Gold is $400. S&P is 120.
You also neglect one MAJOR difference. The S&P has been paying dividends, Gold has been costing money to store.