I say a handgun is much more versatile. What is your plan when someone's pounding on your door in the middle of the night? It could be your drunk ex-girlfriend; could be the neighbor kid who's mom is having a seizure.
With a pistol, you can conceal it behind your back and shove it in your waistband when it turns out not to be needed. If you do need it, you can wrestle with one hand and shoot with the other; no long barrel for them to grab onto.