Bankruptcy saves your vehicle from immediate repossession. Whether you choose to file under Chapter 7 or 13 depends in part on how strong of a medicine you need for dealing with the back payments.
Under Chapter 7, you can pay your vehicle loan mostly by getting rid of all or most of your other debts. Under Chapter 13, you can pay your vehicle loan ahead of most of your other creditors.
In bankruptcy, are you allowed to favor: 1) creditors with collateral, so that you can keep the collateral; 2) creditors toward whom you have special loyalty; and 3) creditors who have extraordinary leverage against you?
Three ways bankruptcy can help: 1) write off debts to focus on defense costs, 2) pay only the most important debts and expenses, and 3) reduce chance of related civil liability.