You already have learned this - pay attention to what you are doing - especially when it comes to reloading.
Those primers are useless. Their reliability has been compromised. You go to use them when you REALLY need one to work - and it may not. If I were in your shoes, I'd just call it 'A lesson learned' and move on.
Sooo...I have this niggling question. All who say toss 'em, period. Have you done the same thing and if so, did you try any of the primers before you tossed them? I'm still of the opinion and, if it were me, without asking, I would try 5 or 10 of them without being loaded. Even if all 5 or10 went off I don't think I'd use them in a self defense or hunting load but I wouldn't be afraid to load them in plinking/play ammo and might even chronograph a few just to see how much, if any, they were compromised. Keep them segregated. If you get a squib....soooo....it shouldn't be that much of a surprise and a squib hurts nothing if your cognizant of it.
If you tried 5-10 and say......30% failed, then I'd probably toss 'em. I don't believe I would toss them if the failure rate was 10% or less....but that's just me. 'Course, it shouldn't have happened in the first place but.....let he among us who hasn't done something stupid cast the first primer in the trash..... 😁
You said “smack with a hammer” ?!?!? I would strongly suggest not doing that if that is your intention to rend the primers inert. You may end up with a trip to the ER to have shrapnel removed.
If possible with your sizing die adjust the depriming stem down/out as far as possible and still be able to lock it. This will set the depriming stem’s pin far enough out that you should be able to run the cartridge case up into the sizing die without sizing it but push the primer out. Bring the ram up slowly to push out the primer. Slow pressure will in most cases not set off the primer. Ware safety glasses and hearing protection if one does pop. Primers by them self’s are very loud.
To render primers inert, soak them with a thin penetrating oil such as WD-40.