On the other hand, with a leveraged position in the market, if the value of your portfolio falls to a certain level, you either need to post more capital or your position is liquidated. If you are capital constrained, there is literally nothing you can do in the case of a leveraged position - your broker forces you out.
Regardless, if you keep making your payments, there is no way for a bank to force you out of your mortgage or call for additional capital due to a decline in value. This is the big difference.