Chinese and Indian troops clash all the time! Most recently is the "Doklam" dispute [1] where they share a border with Bhutan. Last I heard they were literally throwing rocks at each other (not a joke). There's no love lost between the countries, that's for sure.
But I do agree that neither will risk a major confrontation.
[1] https://en.wikipedia.org/wiki/2017_China%E2%80%93India_borde...
also note that Chinese design/build/operate advanced weapons like anti satellite missiles, anti aircraft carrier ballistic missiles, ballistic missile launch early warning systems, J-20 stealth fighters, military grade satellite navigation system on its own, india can not even build self-propelled artillery on its own.
Both nations know this full well, that is why there will be long lasting peace in the region/border.