for fair comparison you need to analyze most common scenario, which is multiple victims/targets vs single killer. it's going be day/night difference between dealing with a guy with a machete in his hand and a gunman...
If it's a few on your side you're not willing to abandon, it's entirely another matter and beyond the scope of our discussion.
If there's only one target, yourself, then if the one or more assailants are already within "critical distance" I personally don't think the difference between edged weapons and guns is "night and day", but I agree it's still quite big.