Of course loans of any sort should be discharged in bankruptcy. That's why lenders have loan officers. Lenders are responsible, and count on their debtors to do what they say they will.
I oppose any sort of government-guaranteed loans, whether mortgages, student loans, loans to solar companies, or loans to car companies. Also, the SBA loans. Government is not a bank. Government-guaranteed loans put taxpayers on the hook for things they would never lend to, including dumb and unmotivated kids.
Bankruptcy rightly screws up your credit for a long time. Megan McArdle says Lending Bankrupt Students a Hand
Sure, as long as there is no government guarantee. Few things would raise the quality and lower the cost of higher ed faster than that.