If it is the police and not a gang of cracked-out tweakers, they will be better trained and armed than you, and can call in backup.
I follow a lot of these police home invasion stories and have noticed the guys who get killed are the ones who respond to the break in with a gun and don’t use it, or who respond with non-firearm such as a golf club. The guys who open fire on their assailants tend to survive the encounter.