Bitcoin is more fungible, and more convenient to use than physical gold bars. Bitcoin is more secured than gold too, and even Bitcoin and Gold belong to different asset categories, comparison between them is not actually good.
Indeed, storing gold is quite cumbersome but we cannot rely on that and claim that Bitcoin is safer than gold because the internet world is even riskier than the real world. Furthermore, to evaluate which asset is safer, we need to have an overall assessment such as popularity, legality, liquidity....and I don't think bitcoin is superior to gold.
Bitcoin is far behind gold in marketcap but one decade ago, noone thought Bitcoin can go far like it achieved in 2024 and 2025 with very high market cap $1.896 T like now. Biggest difference between Bitcoin and gold is their total supplies. Bitcoin is limited, capped at 21M bitcoins, and gold is not limited with unknown mineable gold on Earth and possible on asteroids and other planets in future.
Gold has a larger supply but the demand and practical applications of gold are many times greater than bitcoin. That is why humans have been mining gold for over a thousand years and hundreds of thousands of tons of gold have been mined but there has never been enough gold to meet our needs. Not to mention, gold mining is extremely complex and expensive, and that only causes gold prices to continue to rise instead of falling as many people think.