If there is a planet within offensive range when going offensive, check to see if the majority of its docking spots are taken up by enemy ships. If so, ram the planet (maybe check to see if enough reinforcements are on the way to destroy the planet, first).