No. In both situations, the “Space Cannon” ability did not destroy the last ship in the system, so the objective is not fulfilled.
This is the official FAQ answer printed in Living Rules Reference v2.0 (2020), not a newly generated ruling. Later card printings and expansion clarifications can change which wording applies.
Official LRR v2.0 FAQ · original card wording. Check Omega / Thunder’s Edge replacements before applying this to a revised card.