Let's say I've just graduated from college with a degree. I have minimal assets (clothes, computer) and lots of debt (100k in student loan debt). How does bankruptcy work out poorly for me?
On graduation, unless someone has incredible job prospects, wiping out 100k of debt in exchange for not being able to get a mortgage for 7y is a great deal. At 20k it's not great but still pretty good. I bought a house 7y after graduating from college, and I think this was earlier than most of my cohort.
Additionally, I wouldn't even expect a college bankruptcy to fully preclude getting a home mortgage. With a large down payment the bank isn't actually taking that much risk.
(Except that really I expect that if this law changed loans would require cosigners with good credit)