India’s elections challenged Modi’s dominance and emphasized the importance of diversity in a democratic masterclass, writes Pallavi Aiyar.