But the Dominion didn't go to war against the Alpha Quadrant powers to control mere territory
, they went to war to control the evil solids
. Even if every human evacuated Earth, they'd still be chased down by the Jem'Hadar, and either killed or corralled, because solids on the loose are a threat.
The Maquis could've ended the problem by evacuating the disputed territory. The Cardassians weren't going to chase them down, just chase them out. Similar tactics wouldn't have worked against the Dominion, so comparing the situations is nonsense.