And if you think your dog will always win, sadly an outlaw prepared to kill a person cares nothing about shooting your dog
I know this well, I had a pit bull years ago, a guy came in had a 38, dog took it away but was shot in his head doing so. Dog lived guy had it real bad after that, sold the gun to a friend after checking the serial for stolen. I was in bed when this happened. A good dog will lay down his life for you. might give ya enough time to get away to a safe place.
When I was 15 someone broke into the house while dad and mom were on a vacation. I called 911 and let them go thru the house. Found where he went in and went out.