I’ve heard from cops that they’re more leery of an unpredictable suspect with a knife than one with a gun, within closing distance. There are more ways to disrupt a gun than a knife.
I would rather have a pistol but there are all manner of ancient warriors I would never mess with even with a pistol.