VISTA variables in the Sagittarius dwarf spheroidal galaxy: pulsation-versus dust-driven winds on the giant branches