I wouldn't throw them out just yet.
Most manufacturers like to get defective rounds sent back to them. They can measure the depth of the firing pin depth, which lets you know if your firing pin is functioning as it should, as well as pull the round apart to determine if the problem was with some part of their process.
To me the depth of your firing pin looks a bit shallow.
I had a friend that bought a new 9mm a few years ago. At the time I worked for CCI/Speer. My friend had several rounds out of a box of Blazer ammo (cheap plinking rounds) not go off, out of two different boxes. Many did go off fine. I looked at both the boxes of ammo and found they were from different "Lots" (sometimes a QC problem does happen, but usually within the same "Lot"), so I took some of them for samples and gave them to one of the QC guys to check out. It turned out that my friend's brand new pistol had a shallow hitting firing pin, around .002" shallower than it should be.
He ended up taking it in to be adjusted and it has worked flawlessly ever since.
Where yours happened across two different manufacturers it just might be that your rifle's firing pin depth is right on the edge. It could simply be coincidence that you got two dud primers too though, but it'd be nice to know the problem isn't with the rifle.