this is a common misconception.
if you put the work in you can in fact have federal student loans discharged when you go bankrupt. a law student just had this happen in a high profile case, i forgot the name of the debtor but google search and you'll find it.
look, if you do your homework you'll find out how it can happen. i'll leave it at that.
Bruh.
Listen.
NOT going to happen.
Going bankrupt isn't even a reasonable answer to this situation.
You don't want to face that decision.