Gandhi and Ambedkar’s legacies need not be seen as competing, argues the historian