Kinda hard to handle a rifle for in home defense.
And firing a rifle indoors will make your ears bleed.
I hate 9mm, but alas it has so much going for it given the OP's parameters. Cheap, low recoil, high capacity, and one can have a magazine of Glasers for the home (no overpenetration), Blazers at the range (cheap crap, don't bother recovering "brass"), Hydro-shok for going into enemy territory.
I hate Glocks too, but in this case its the best bet. Practically everyone owns at least one, parts are all over the place, cheap (its rare to wear one out so a police return is cheap and good), high capacity, and they are largely fool-proof without having to obtain muscle memory to fiddle with safeties and grip. They are indestructable, don't rust or decompose, and can handle idiot relatives who put thousands of rounds through them without ever once cleaning the barrel. And if one so desires, laser guide rods give it cool poser value down at the indoor range.
So will magnums.
Made the mistake of trying my buddy's brand new Taurus .41 magnum, and we forgot ear pro.
Thank goodness we had some paper napkins to wet and stuff in our ears.
For when you don't want to wake the baby or scare the neighbors.