Student loans should be discharged on personal bankruptcy. All of the other examples you give can be written off like that. Student loans, however, are rarely discharged by judges on those processes.
I'm strongly against student loan forgiveness, but I support this measure. Society offers a life vest in the form of bankruptcy to people who are financially drowning. That's as it should be. No need for new, ad hoc solutions to this problem.