Before you consider which gun would be right for you, there are some other factors to take into consideration.
1) Points of home invader entry and likely places of home defense.
2) Tactical considerations: do you know them or not (identify your target); adult or child; invader armed or not; coherent or intoxicated (them and you); wanting to advance on you, stand there, surrender, or escape; gap between you; obstacles, concealment and cover for you both.
3) Actions before calling police and after calling police.
4) Local and state laws.
5) Primary and alternate weapons, backups, and contingency plans.
What I was told and it sounds about right, don’t go looking for the intruder...get the bed between you and the door, cause the master bedroom is where they will end up...set bedroom furniture with that in mind, if nerveous, the bed can also be used to steady aim. They frame themselves just right when they open the bedroom door....
You forgot another factor to consider:
6) Shovel and suitable plot of land to plant said home invaders.