I was not aware of these, so thanks for mentioning them so I could read about them. Ambedkar seems to have been a remarkable person.
The thing is, while Gandhi is revered, there were other great leaders including apparently Ambedkar. One I always admired was Subhas Chandra Bose who was often at loggerheads with Gandhi.
So thanks to you I looked up more information on Gandhi vs Ambedkar and found this:
https://www.clearias.com/gandhi-and-ambedkar/#:~:text=Ambedkar%20denounced%20Vedas%20and%20scriptures,to%20do%20with%20religious%20spirituality.
I find both men remarkable in different ways
I do think that the caste system is evil. When I was in college here in the US I knew of several professors originally from India who had changed their last names to get rid of the association with caste, and my own parents married across caste in the 1960s.
Unfortunately, in companies with large numbers of Indian workers, the caste system seems to have a resurgence.