Honestly, Megatron seems like the type of guy to give up fighting an endless war for a single planet.

Megatron strikes me as a General that would build a massive battle fleet, and then go off and conquer other planets and harvest their resources to fuel his growing empire and war machine. Even if he lost Cybertron, he would build a Decepticons empire elsewhere.

I'm surprised writers haven't done this.