By the eighth century, Buddhism had developed into a very complicated Mahayana Sect, full of scholasticism, alienated from people's livelihood and no longer concentrated its power. At that time, Master Sankara appeared, studied Buddhism deeply and introduced it into Brahmanism, removed those factors that were not in line with social development, and gradually formed a new Brahmanism-Hinduism. Through the continuous integration of several generations of Hindu masters, he gradually regained religious authority in India because he was closer to the people.
In addition, the non-dualism of Vedanta, the main ideological center of Hinduism, originated from Buddhism and developed it. So people who don't understand, don't assume that Hinduism is not as good as Buddhism. In fact, Vedanta's non-dualism and Buddhism's middle view all come from the Upanishads of ancient Brahmanism, and Buddhism was not established out of thin air. Relatively speaking, India or Hinduism has a more social foundation, which has led to the present situation.