This is a false equivalence; the answer is “neither”.
Veganism doesn’t seek to end all animal suffering, but not to exploit animals for humans’ sake. We don’t need animal products to survive, so we shouldn’t add to whatever misery already exists naturally.
In the case of livestock, we should just stop breeding them. No vegan is arguing for dumping all cattle in the savannah to be hunted by lions.
Do yourself a favor and throw out all other food ad well, unless it’s completely sealed off. Their eggs take a while to hatch, so you don’t want to see them pop up again in a month.
Then clean the entire kitchen with a spray of vinegar and water. Pay extra attention to corners, crevices, and places like screws. Their eggs are tiny.
You can also get a pheromone trap to avoid them spreading further.