IME, the stinging usually happens when those tentacles stick to the tissue that they are attacking. My frogspawn and hammer have the tentacles extended, but tend to just graze each other rather than sting.
Of course, the hammer doesn't play nice with my candy cane/trumpet.