I had an interesting experience when two of us were shooting 22 rimfire and both had problems .I got the crazy idea to exchange ammo - then both of us no longer had problems !!

Took a bunch of the cases to work the next day where we had a nice optical comparator .There it was , my ammo had a large radius in the rim so that the extractor slipped off the rim !
So rim dimensions , extractor dimensions, extractor spring , dirt in the extractor can all play a part. In my experience many forget to clean extractor spring and hole and firing pin , spring and hole .Start there .