Or just defensively. The US invaded Iraq because they might have had WMDs. Other planets might have WMDs too. And they might think we have WMDs. Doesn’t matter if any of the sides actually do.
The point is that public justifications are more important than actual motivations. Actual motivations can be enslaving other beings, ruling / mining an extra planet or just wanting to watch the universe burn. Motivations are already present because there are millions of motivations that map on to the same result - destruction of another group of living things. I'm pointing out that it's easy to find public justification as well.
It's also possible to do this unilaterally. China or any other country could also unilaterally decide to destroy another planet. And same possibility on the other side.
The problem with interstellar warfare is, outside the "Dark Forest" concept of "kill everyone just in case", there aren't all that many motivations that seem to make sense.
Any interstellar species probably doesn't really need to steal planets, resources, etc.
1. That seems very unlikely, from what we've found so far. We'll know more as things like the JWST come online, but right now it seems like planets of all sorts are everywhere.
2. Any civilization capable of interstellar travel is likely not to care all that much about a narrow band of natural habitability. They've already solved harder problems.
I'm not sure its given that a civilization that has technology for interstellar travel is going to consider a planet that is suitable for life with little work to be roughly equivalent to a planet that is suitable for life with a lot of work. Its equally likely that they would be economical with their resources and consider a planet that is closer to the desired end state to be much more valuable than a planet that is much further from the end state.
This seems likely; both sides might see it as a prisoner's dilemma situation, where there isn't any basis for trust and it's safer to destroy the other civilization before they're destroyed themselves.
(I don't think Iraq was actually such a situation, but at least on the American side some influential decision makers may have believed that it was.)
On the other hand, you might have something more like a cold war situation, where both sides have the capacity to destroy the other completely or almost completely but not without an equivalent counterattack, and so both sides have much more to lose than to gain by striking first.
Be careful not to conflate public justifications with actual motivations.