Depends on which chapter of bankruptcy, which all entail wildly different things. There's bankruptcy that effectively eliminates debt and others which force you and your debtors to come to the bargaining table to restructure your payment plan or they get nothing since you could just file for actual bankruptcy
The difference is if you can afford to pay for the lawyers necessary to create that restructuring or if there's any trust at all that you can pay it off eventually without getting yourself deeper in debt
I had an 8k bill for a TIA I had last year. It's a lot of money, but if you have a job that will cover most of your hospital bills, you can probably pay for it without drowning
To be clear, I'm not saying it's a good system