Your first instinct—the flailing dance of a thousand ancestors—is wrong. Swatting turns a curious wasp into a defensive missile. Wasps do not sting for fun; they sting because they feel trapped.
Think of them as tiny, winged teenagers with poor spatial awareness. If you flail, they panic. If you stay still, they might even forget you exist for a moment. This is your window of opportunity.