If I put a pencil down the barrel, on any handgun, and pull the trigger, the pencil had darn well better go flying!
If the firing pin is thrust forward, by hammer or striker, with enough energy to pop a primer, it will eject a pencil from the barrel.
Just for kicks, I tried this with a random sample of guns from my safe, albeit with the barrels pointed near-vertical. Brand new #2 pencil, eraser end down. DA/SA pistols were tested using the DA pull. The DA/SA revolver had to be hand-cocked because the cylinder won't turn with a pencil through it.
S&W M&P9 full-size, S&W Model 15 revolver: Pencil jumped almost 2".
SIG P226: Pencil jumped about 1".
Beretta 84BB: Pencil jumped about 3/4". Note that this pistol has an inertial firing pin.
NONE of these guns would eject the pencil, yet NONE of them have ever had an ignition-related malfunction when I've fired them.
My S&W M3904 (which I recently sold) would fling pencils nearly to the ceiling, and you could practically play pencil Airsoft with it if you held the barrel horizontal.
That said, this amount of firing pin force obviously isn't necessary to set off most primers.