This depends on your definition of ‘safer.’ Usually people invest in gold because it is a good ‘safe haven’ asset: its value tends to be largely unaffected by market turmoil, meaning investors can protect their capital at times of crisis by investing in gold.
Bitcoin on the other hand, while separate from other economic activity, is vulnerable to market fluctuations and the market is a famously volatile space. This means Bitcoin isn’t as well suited to protecting capital, if that is your sole aim.