The one thing that bitcoin could do is that gold couldn't offer its users convenience. Safekeeping is a herculean task if you are to invest and buy gold for yourself because no matter what happens there will always be someone out there who could get their hands on your safe and steal your gold. On the other hand, bitcoin is so secure that even those who outrightly own their supply get locked out when they forget the passphrase, the safe key, or whatever security measure they placed in the first place.
Gold can be used as an investment or as a commodity for purchase. Bitcoin is a project that everyone has chosen to invest in in recent years. Bitcoin is easy to carry, has a relatively high value, and has anonymity. Nowadays, many people choose to use Bitcoin as a payment method, which can protect our privacy. You can invest in either. If you are richer, you can invest in both at the same time.
Bitcoin could be used for investments and as a store-of-value, as well as a fully-fledged currency that people could use to facilitate transactions. Whatever gold could do, bitcoin could do it better. If not only for the volatile nature of bitcoin and other cryptocurrencies the transition between cryptocurrency and fiat will be much faster and would've happened ages ago. But reality is often disappointing, so here we are right now.