Yes they would as there’d be no cost to them while all of them on the taxpayers.
Simply, people were not playing the game that way in any serious way. I am pretty sure I have never met a single person who declared bankruptcy purely to avoid a student loan.