US policy toward Cuba had much bigger impact because Cuba is a tiny island next to the North American continent, and being cut off from your obvious larger trading partner is more severe.
The US sanctions on Cuba didn’t have anything to do with free elections though, and their primary effect was entrenching the Cuban government while impoverishing the Cuban people.
The US is China's largest trading partner and the relative size of China's economy was much smaller at the time. Moreover, other democratic countries could have adopted the same policy which would have given it real teeth.
And the sanctions did nothing to entrench the government. The government was already entrenched. If the people there don't like the policy then they know how to end it -- change their government.
Impose Cuba-style sanctions on China until they held free elections. It may not have changed their policy, but it would at least have shown we were serious about it. And knowing what we know now, it would obviously have had significant economic consequences over time.