The book I read 45 years ago said the best defense was to break apart a pair of scissors and tape one blade to a broom handle.
It was published in 1968 during the anti-gun madness after the death of Bobby Kennedy.
Do you have such a device ready and available and placed throughout the house?
If you have to do this while under attack you are as good as dead.
(SECOND)problem - even if you had such a device available and ready, YOU would have to get within 6 feet or less to be effective whereas your opponent can stand back 10, 15, 20 feet or more and PLUG you with ease.