Hard to hide two dozen sticks of dynamite, wires and a detonator under a yarmulka. Not to mention, there has never been even one case of a yarmulka-wearing suicide bomber who hid the bomb under his yarmulka. So, no, it's not really much of a comparison.

They should just rephrase the laws and make them apply to everyone: NOBODY wears ANYTHING that could easily conceal a bomb. No trenchcoats, no burqas, no robes. Jesuit priest in a robe? Sorry sir, you need to take that off. Whatever. It's not so much religion or race as the type of clothing that's the potential doorway for suicide bombers to walk through.