It goes to your estate. Your estate is just whatever assets you have. So the bank would sell your possessions to pay the debt. If you have a beneficiary then yes they
can inherit those debts. However, they cannot legally force them to pay those debts they're not legally responsible for. They will be responsible If they cosign, potentially too if they are their spouse (this is mainly for medical expenses so wouldn't worry about it). This is based on American laws which most other countries generally follow so find your own country's resources on their government websites if available. Most of the time though it's not worth the creditor's time and resources to pursue your debt.
Here’s what to know about the rules and your rights when a collector contacts you about a deceased relative’s debts.
consumer.ftc.gov
Unfortunately, credit card debt does not simply vanish when we are no longer around to pay the bills. Instead, this debt is considered part of our estate and then managed by an estate executor. For those interested in knowing more about what happens to credit card debt and any accumulated credit car
www.forbes.com