Legitimate is such a funny word. It seeks to make objective what is in origin subjective. Who says which of the two is the "legitimate" government of China? Upon what basis? Being better at killing people in a civil war?
Or is the consent of the governed? And if so, I think saying Taiwan belongs to anyone else except the Taiwanese is a big mistake.