Gold is useful in chemical and industrial processes. Bitcoin obviously has no use other than money, so I don't know if they are completely comparable in this sense.
If people decided that gold was not valuable as money, it would retain at least some value based on its usefulness alone.