If anything being armed in that situation is incredibly stupid, because you'll still panic and now you're acting irrationally with a deadly weapon. The weapon can be used (as this example) or taken off you.
I speak from experience, I got mobbed upon by a local gang, thought it would be smart to arm myself with a prop sword in order to stop them advancing.
It didn't stop them, and in fact the sword was taken off me (because it was a prop, and I wouldn't have used it even if it wasn't to be honest) - and they proceeded to smash it over my head sending me to hospital.
All of this is only obvious with a clear head, and in hindsight. Being in that situation as a human being is just.. awful. I don't recommend it.
EDIT: I'm getting flagged a lot from emotional people; I think this is part of why I really dislike this topic, we know nothing except how we feel and refuse to look at things objectively - and we're not even qualified to do that anyway. So everything becomes pornography to confirm our biases and to drown out anyone who doesn't immediately call for the end of Israel.