Comparative planetology and the origin of continental crust