The main goal when someone breaks into your home is to stop the threat. I have the legal right to assume they mean to do harm to myself or a family member. The mess afterwards is of no concern if the threat is stopped. A shotgun is more effective to the extent, you do not have to be as precise in your aim as you would with a handgun.