Another way of looking at the matter is that the invasion route also involves fighting off Indian Defense forces. Independent countries have military for a reason.
Mountains, army, food hard to eat with chopsticks—there are so many good reasons for China to continue its five-thousand-year-long streak of not attempting an invasion of the Indian subcontinent.
Pakistan does not have even puppet state as hindrance.