Disagree. Cherry-picking time windows does not help that much. All these classes have their days of glory but...
"When looking at gold vs. stocks, the yellow metal has moved from $35 an ounce to almost $2,000 in 50 years, providing an average gain of 8.8% a year to long-term investors. In the same timeframe, the S&P 500 gained an average of 7.6%."
https://moneyandmarkets.com/buying-gold-vs-stocks/
Most of the rises in the SP and other main indexes have occurred over the last 15 years in a crazy cycle, greatly assisted by loony low interest rates and magic money printing. Now the Fed is trapped and damage will happen whether it raises rates more (stocks) or cut them back, (with returning inflation), or worse.
The chickens are home to roost and the outlook is bad either way.
If you have any gold, keep hold - as my granny used to say.
Bless her.