> it was to discourage students from immediately declaring bankruptcy upon graduation.
Yes, this was a thing in (IIRC) the late 70s / early 80s, and the fed crackdown on the non-dischargeability of school loans in bankruptcy was enacted very quickly in response.
I myself got my bachelors in '79 and read about this idea and did not try it cos it was so incredibly unethical (and it sounded risky). In the words of the infamous Vince Lombardi, "Nice guys finish last."