China will not stop having diplomatic relationships with a state that recognizes Palestine, as opposed to those who recognize Taiwan.
And if a country does not recognize taiwan why would they recognize palestine? is it simply that there are greater consequences to the former?
There's less pressure to do something about Taiwan because people are not currently starving or dying violent deaths at a high rate in Taiwan.
Perhaps Tibet might be a better example?
There are many differences between the two cases, and also some similarities. I don't really understand the purpose of your question, or why it's useful to compare?
I suppose it feels inconsistent in my mind not to do both, and personally I feel like Taiwan is a more legitimate case. (afaik they are not actively attacking another nation, the picture with Palestine is far less clear)