India & Pakistan would have achieved independence even without Gandhi. Absent his constructive influence, it might have taken longer and probably would have involved more violence.
Pakistan does not share India’s reverence for Gandhi.
Please forgive my iconoclasm. I devoted the first half of my short essay to Gandhi’s positive contributions before noting the limited utility of pacifism against totalitarianism.