I wouldn't say that China is forced to side with Russia. I would rather say they choose to do so. They have enough Asian buddies to fill their resource coffers if they need to.
I rather see an ideological resemblance as well as having similar political interests.