I think the bank will make you pay the difference if you do. If you owe more than the bank can sell it for, you will pay the difference. Therefore, it’s not such a good idea to walk away from it.
The Bank cant make you pay the difference the house is security on the loan. The bank assumes the risk. Or the VA if its a VA loan.