That's a made up scenario, it provides no example. We don't know what china would or wouldn't have done in that situation.
One may as well argue if Taiwan didn't have the world's most advanced semiconducter industry, it would have voulentarely joined China.
So that's an easy example of how trade helps keeps peace.