Here is an idea for any writers reading this who want to break the violence cycle: whenever you feel you need to have a character kill another in a gratuitously violent way, twist the plot so that they instead end up having steamy sex. The readers will get an intense hormone rush that way too.
Have you seen Earth? We've been hit with a big rock, we've turned out atmosphere into poison, and had several other mass extinctions, none of which sterilized the Earth.
Unless you mean a Theia-level rock to turn the entire surface into lava, but you risk changing the mass, composition, and satellite system of the planet. At that point it's a different planet entirely, so I don't know why you would expend all that energy. Just find another planet to live on.
We can't even "just clean up what survives" in the cleanest rooms on Earth, using techniques specifically intended to do that. Life is incredibly tenacious, I really don't think you're going to wipe it off a planet's surface without destroying the surface (and atmosphere, probably) of the planet in the process. And if that's acceptable - again, why wouldn't you just pick a barren planet.
Maybe their own star system is not safe for them. Say a political or religious minority that the majority would like to exterminate.
> And even if you were going to do that for some crazy reason, there's no shortage of uninhabited planets out there. There's no need to commit planetary genocide of an alien race.
If they've got cheap and easy FTL, sure. But suppose they don't have FTL. They are going the slow way, using a generation ship. At launch they may only know that their destination has a habitable planet but not know if it has intelligent life already.
Their generation ship environment might not be reliable enough for them to want to risk trying to move on to another star if it turns out the first habitable plant already has intelligent life.
Honestly it's all kind of silly because distances are so vast. It makes little sense to travel to a distant star - much better to build space habitats in your own star system. And even if you were going to do that for some crazy reason, there's no shortage of uninhabited planets out there. There's no need to commit planetary genocide of an alien race. Also if you have that kind of tech level, space habitats make more sense than planets anyway. Finally if you seed distant star systems with your own species, you risk that species going to war with you later (see how that played out on Earth just across the oceans.)