Not Nitpicking, but IMHO there is no one HD weapon that will be perfect in every personal or residential situation. It's a very personal assessment. Threads like this are very useful, it gets you thinking "what if" lots of great ideas and info comes out of threads like this.
For me, it's my former EDC with a white light attatched. I'm very familiar with this pistol and practice with it often. It's a .45 so I'm confident the round is enough. 14 rounds in hand may not be enough, but they will have to do. If I have time, 2 extra mags in the back pocket and phone. (You do keep a pair of pants bedside, right?)
Electronic ear muffs are right next to it on the night stand. If I don't have time for both, then my layered defense has failed and I'm so far behind the ball that I'm unlikely to survive anyway. So pistol gets grabbed first. I'll play the hand I'm dealt, we all do.
Long gun at the ready is a 9mm PCC loaded up with 127gn gold dots. 33rd stick mag in the weapon as well as a few stashed at choke points where I feel are the most likely engagement points. Once he's in the house, he's made his choices and clearly demonstrated his intent. All I can do is respond as best I can and deal with the fallout later, if I survive.
If the "Doo Bad" is still outside, then he is lit up by the security lights already. I'll let him know he's in the middle of a hard target and he should run along and play somewhere safer as police have been called and he is on camera already.
After that, it's all up to him what happens next.
Opinions to offer.
Keep a pair of pants at bedside. Put what you think you will need in the pockets. You'll need a place for phone, mags, flashlight, whatever. If it comes to a fight, you'll be at a disadvantage if you're nude. Unless you look like me, then the "shock and awe" factor may be an advantage. The sight of me nude, charging out of the shadows lit up by muzzle flashes would freeze the blood of many brave men.
Layer your defenses as best you can given your particular situation. That will give you time to react more effectively. Even an apartment can be hardened to a point, but maybe not enough.
Try to stay calm, not easy, but try. A clear head is your greatest advantage.
Much more I could add to this thread but this isn't the place. Get training if you can. If not, Youtube has a lot of good training videos. Practice! A lot. Do an empty gun dry run through your home, at night, acting out the most likely defense situation you feel is appropriate. Play "what if" in your head and come up with a plan to deal with it.
Good luck.