That comment sounds logical but is it practical ? Handgun vs 12ga. ?
Here's my opinion:
The first rule of gunfighting:
bring a gun. If someone can shoot a shotgun or rifle,
they should. If they can shoot a service-caliber handgun,
they should. If they can shoot a small-caliber pistol,
they should. A .22 sounds plenty loud and scary going off in a house at night, and 5-6 hits with a .22 beats a miss with a .45.
The discussion of one-shot stops does not take into account the tactic of
firing more than once. Those 5-6 CCI Stingers in the chest and face will change the balance of power pretty quickly.
A shotgun is best for defense of my home. My bedroom gun is a Mossberg 500 riot gun, 00 Buckshot. I'm gonna let the bad guys come to me, and own the battle space.
I do have a rifle or two, in case a pack of rabid beavers, or Democrats, attack my house.

Since I can't carry a rifle or shotgun out in public, I carry a handgun, knowing that it is much less powerful and less effective than a long gun. I carry a .45 or a .357, because I like 'em the best. I like the Hornady Critical Defense ammo in both calibers.
Your mileage may vary, but remember the first rule of gunfighting.