Issue is, can China deploy its Navy all the way across Mallaca? Impossible. Wars are not decided simply by numbers but by reality of battlefield as well.Indian Navy vs Chinese Navy = Easy win for China. This is the problem, you are outgunned in the air and at sea.
India can easily blockade Mallaca strait holding all of Chinese oil supply hostage. And then when US and Japanese fleets move towards the soft underbelly of China and its richest parts, Chinese government will be begging for mercy faster than they say 'Nihao' in Beijing.
That war is an impossible war for China to fight. There are no supply lines that can keep their CBG supplied on any mission in IOR. If any of small countries like Sri-Lanka will so much as try to help Chinese, their heads of head of government will be rolling. RAW is deeply entrenched in all of our neighbors, even the friendly ones.