The problem with HD discussions is that too much speculation and entertainment gets thrown in the mix.
Nobody ever discusses why a perp would want into your home, and how they did it. A frank discussion of who your friends are, why openly display high theft items, a complete lack of home physical security, and being apparently too insensitive to prowlers banging around in the house until the last second are completely ignored.
Aside from complete neglect to secure a home and choose the right people to know ( most home invasions are a) drug related, b) a GF who's in your "protection" this week until she moves on to another sucker,) the home needs to be viewed just the same as the Army views the battlefield. There are short, medium, and long range requirements, choose the best response for each.
Handguns are best for indoors. You need a short weapon you can control at CQB grappling ranges, working down narrow residential hallways, and something difficult to wrest away. Add a flashlight to ID a teen coming home after curfew, or Muffy chugging up a rabbit that disagrees.
Medium range is addressed with long guns, and implies you are already awake and have a field of view and knowledge there is an external threat. It's very common on rural properties, the dog is barking, the shed lights are on when you suddenly changed plans and your thieving in law thought you were gone (goes back to: most home intrusions are someone you know.)
A case can be made for any gun, at that point, any gun will do. Speculative conditions are too often imposed on the discussion, What If? reigns supreme, and the real point is usually an posters agenda to prove themself right.
That's why most knowledgeable shooters avoid the whole thing. It's largely pointless because all the more important issues have to be cluelessly tossed to create the scenario to begin with.
Most reasonable Americans assess their risk intelligently, and first pick a neighborhood they trust as reasonably low crime - the Long Range solution. They don't flaunt their wealth to strangers, if Joe Scruffy doesn't know you have it, they don't know to steal it. Most gun thefts - Police statistics - show the perp got into the house because YOU let them in, a friend of a friend, and showed them all your cool guns. Usually about 2 to 6 weeks before. They basically had you help them case your house. Major collectors of militaria and firearms can rattle off case histories each other suffered before learning that lesson.
Last but certainly not least, how did they get in? Locked doors keep the honest out, when it comes down to determination ( or an EF5 tornado - I live 6 miles from Joplin, MO.,) if your possessions are just lying around, I have to ask why you don't deserve it? Of course, that's like asking the young women why she dresses like that when she didn't want to be raped, no, it shouldn't happen ever. But, it does, and being innocently clueless is no defense, either. Hence, Mom and Dad suggesting more modesty, and mine to get guns and valuables in safes, locked tool chests, secured in closets - or use that FEMA rated tornado room for something more than two folding chairs and a flashlight. Considering the amount of debris many had jammed against the doorway, a large prybar, saw, and you're valuables secured in there with a least one durable change of clothes, water, and some food wouldn't hurt one bit.
THERE'S your Home Defense scenario, not some internet speculation on what bullet just might be more dangerous to a baby sleeping one wall over. That doesn't happen nearly as much as some make it to be - the whole point, it's not grounded in real facts about the issue. Discussions about what gun or ammo are all about it being too little too late.