>From China’s perspective, the cost of war is much higher than the cost of developing these chips themselves.
You've got it completely backwards. China doesn't want Taiwan because it has the best chip manufacturing in the world. Taiwan has the best chip manufacturing in the world because China wants to invade them and they wanted to give the US a reason to defend them and China a reason not to. War with Taiwan will impact global chip supply even if China can produce their own, which their economy will feel.