For about the 5000 USD investment, buying gold taking you nowhere in 20 or more years. Gold might hold value very well, but you should not expect it appreciate in value much, so the equivalent of today 5000 USD might mean not much for you after 20 or so years when you already should have house and kids on their own.
On the other hand Bitcoin is much riskier but with a lot potential to take from your 5000 USD investment a fortune after a while, gold cannot offer such potential appreciation. Thats why I prefer putting such smaller amounts to Bitcoin. But if you had much more to store, like million USD, then gold is beter choice for most of this million, while Bitcoin only for much smaller part.