Cohen made the comparison during a House judiciary hearing titled "Sharia-free America" that examined the threat posed by the Islamic code.