It's better in some ways and worse in others. It could be a lot easier to hide a key than a gold bar. You could still use bitcoin to buy your way to freedom, and there would be a black market for it if there's any way to get online, which there will be. The value is supported outside the country.
It's not clear to me that gold is superior in that use case.
And - it’s not going to help you against the Nazis if you can’t transact it.
As to gold - that misses the point. Of course it can be taken from you.
However unless that happens, you can still transact it. People escaped the Nazis using gold to pay their way.