I prefer a slow fat .45 ACP and for me, in a 1911. If you are turning corners in a dwelling a long barrel is a disadvantage. If you are starting from your front door, that is a different issue but the question was about a nightstand firearm, so I would stick with the pistol.
A 357 magnum penetrates too much. In the pistol calibers no other round surpasses a .45 so the logical solution is the .45.
I won't be turning corners, won't be going anywhere so length won't matter. I like the 45 and have one but first pick would be the shotty and yes I have taken defensive shotgun courses and I've even stayed in a Holiday Inn recently...

As far as what the question is about, I don't keep anything on or in my night stand but two feet away in a corner and in a drawer. I want to have to make at least one very conscious move when waking from sleep before my hand goes on a gun.
