As I wrote above, by itself gold is a terrible investment. But as a small portion of a portfolio that you rebalance periodically, it has its benefits for improving risk-adjusted returns. See my second link for details.
But you can get the gist by observing that in 2008, the S&P500 dropped 38.49%,[1] while gold went up 3%. If you had, say, 10% of your portfolio in gold, then when you did your end-of-year rebalance you got to buy a lot of cheap stock. Gold also substantially outperformed stocks in 2007, 2009, and 2010. So I'm not convinced it's a "myth that people flee to gold in times of uncertainty." Maybe you're right that it's not as big an effect as some people believe, but it's enough to benefit your portfolio.
But you can get the gist by observing that in 2008, the S&P500 dropped 38.49%,[1] while gold went up 3%. If you had, say, 10% of your portfolio in gold, then when you did your end-of-year rebalance you got to buy a lot of cheap stock. Gold also substantially outperformed stocks in 2007, 2009, and 2010. So I'm not convinced it's a "myth that people flee to gold in times of uncertainty." Maybe you're right that it's not as big an effect as some people believe, but it's enough to benefit your portfolio.
[1] https://www.macrotrends.net/2526/sp-500-historical-annual-re...