Pain of bad credit vs pain of paying back loan, choose lesser pain. Debt can and should be walked away from when that's the better option than paying it back.
I'm clearly talking about defaulting on loans in general; default generally means you don't pay it back. If this isn't such a case then obviously it doesn't apply.