But that doesn't distinguish Bitcoin from other cryptocurrencies. The thing that distinguishes Bitcoin is fame, pure and simple. Everyone has heard of it.
And IIRC it wasn't a "scam", it was a bug in a smart contract.
Presumably if quantum computers (or better DLP algorithms on classical computers) start breaking keys, that will become a priority.
So I think there's an excellent chance that even if the math is solved Bitcoins will retain their value. Perhaps even without many of them getting stolen in the process. This is a big difference from many other uses of cryptography; if someone breaks IDEA 20 years from now, they can decrypt your PGP messages from the 20th century, and there's nothing you can do now to prevent that.