It's not even slightly the same?
The US has an embargo that doesn't impact other countries that want to trade with Cuba. China is going to put an actual cordon around Taiwan.
Also, the US has no historical reason for claiming Cuba and has no real domestic pressure to do so (nobody in either party is asking for it). China has been very clear they see Taiwan as a part of China and will reunite with it not for economic or strategic reasons, but for nationalistic ones.