If a bad guy can make it into your bedroom while you are still asleep, there are a lot of other things you should worry about instead of which weapon you should have. There are a lot of things that you should or could be doing to secure your home and make "which weapon" lower on your list of priorities.
There is no way someone can break into my house without me waking up in plenty of time to greet them with my shotgun.