That depends significantly on state law w.r.t anti-deficiency rules and so on. California is a non-recourse state where a mortgage lender can only repossess the home, but there are other states where the lender can foreclose and then come after you for the difference in case of a short sale.
foreclosure makes it no-risk leveraged investment modulo downpayment.