Pick a gun you can handle while your ears are ringing like crazy. If you were awakened by intruders in the middle of the night, it is likely that you did not have time to put in ear protection. And sound will bounce from everywhere, too.
For the most part, rifles aside, my EDC is the handiest home defense weapon. 4.25 inch barrel, 17 rd mag of 9 mm. I keep one in the pipe, so that is 16 in the mag.
It is always within reach or on my person. As well as two more loaded 17 rd mags.
But there is nothing wrong witih shotties, either. I get the advantage of using shot, creating a number of holes. I also like my slugs. They huge and gaping holes that simply do not close back up. Get a crook in the femoral artery with one of those and an ambulance is not needed but a coroner wagon will be needed.