In addition to short sale and foreclosure, you also might be able to do a deed-in-lieu of foreclosure to avoid taking a hit to your credit. This requires your lender to agree that the value of your home covers the balance (wink-wink).
If you can get the lender to agree to that, it’s the best option.