I wouldn't want Doug Marcaida coming at me with a knife regardless of what handgun I had but I'm guessing if he were staring down a .22SR in the hands of Jerry Miculek, Marcaida wouldn't push the issue.
Many years ago, I pulled a 22 LR 6-shot revolver on 8 guys. We were out in the boonies, the nearest cop was probably 20+ miles away, and the 8 guys were approaching me while spreading out.
I had the revolver for plinking. I pulled it and figured I’d shoot the first guy in the nose. Then I’d go down, because 8 guys rushing one guy with a 22 won’t end well. But as it turned out, no one wanted to volunteer for a 22 round up the nose. Not entirely sure any of them KNEW it was a 22. So I ended up getting in my car and driving off, although I didn’t put the revolver down for several miles.
I’ve carried a 22 LR derringer. Not optimum, but extremely concealable. I’m not a trained knife fighter and don’t carry a fixed blade knife very often. In a pinch, I’d rather have the 22 derringer than a folding knife. But I’d rather have my 357!