The divergent fates of primitive hydrospheric water on Earth and Mars