"For too long, a myth has persisted that student loans are not dischargeable in bankruptcy. The myth is not true because, in fact, student loans can be discharged bankruptcy. We have seen the Department of Education take important steps to ensure that bankruptcy relief is available to federal student loan borrowers. "
But you can default on them.
https://www.consumerfinance.gov/about-us/blog/busting-myths-...
"For too long, a myth has persisted that student loans are not dischargeable in bankruptcy. The myth is not true because, in fact, student loans can be discharged bankruptcy. We have seen the Department of Education take important steps to ensure that bankruptcy relief is available to federal student loan borrowers. "