There's no evidence sticking to vege food gives you a lower risk of the squits. What do you suppose they fertilise the veges with? The raw materials of both are hooching with bugs in that sort of environment, so it's what people do with it that's crucial.
Street food cooked in front of you, fried, or cooked on a brazier, is very safe across the world as long as they don't contaminate it after cooking.
In contrast I'd be wary of eating anything from a large buffet in India, although you'd be reasonably safe with one at top international 5* hotels where they take obsessional care and train their staff extremely well (e.g. Mandarin, Four Seasons sort of standard). Unfortunately most of the salad will taste of chlorine.