Courts aren't stupid, I don't think they'd look kindly upon you if they see you've done this.
Of course, there is no lender who is going to give a an unsecured loan the size of your substantial student debt to someone with said loans and no other assets, for obvious reasons.
Because it's fraud. Taking on big debts you never intend to pay right before a bankruptcy will get you in a lot of trouble.
If this is constituted as a preferential payment, the clawback period is 90 days, if it's considered fraud, it would be longer. However, if someone lets you borrow money unsecured and you use it to pay a non-dischargeable debt, and you can't make the payments on the new debt, that's most likely the new lender's poor judgement.