They're both stores of value and not overly convenient to use for productivity. Bitcoin is not the fastest nor cheapest bitcoin to use for transactions, and gold is not the best material for building - you'd use it for jewellery, circuitry and dentistry but you wouldn't build a house with it. They are both valuable because they're somewhat scarce everyone agrees that they're valuable. Imagine trying to convince someone 2700 years ago that a shiny rock was worth the equivalent of a pig or a bag of rice. You can't eat gold or use it for survival, but it was used as a currency because everyone agreed it held value.
To answer your question, both are stores of value, however I would be buying Bitcoin ahead of gold.