Hypothetically if a manufacturer was considering building a factory on the Moon or on Mars, which location has the smaller gravity well to escape? Assuming final destination of the goods produced is half way between Earth and Mars.
Halfway between earth and Mars? So an orbit 1.26 A.U. in radius, (earth orbit is 1 A.U. in radius and Mars orbit is 1.52 A.U.)
About 5 kilometers/second to leave Mars surface with enough extra delta V to reach a 1.26 A.U. perihelion. Once at perihelion it would take about .3 km/s to leave the transfer orbit and match velocities with your destination. So about 5.3 km/s.
From the moon to EML2 is about 2.5 km/s. From EML2 to an near earth perigee is about .4 km/s. At this perigee you'd be moving just a hair under earth escape velocity. At this point a .25 km/s burn would inject into a transfer orbit with a 1.26 A.U. aphelion. Once at the 1.26 aphelion it would take about .83 km/s to match velocities with the destination orbit. So a total of about 4 km/s.
So 5.3 km/s for Mars vs 4 km/s for the moon.
These approximations were made assuming circular coplanar orbits. Also I ignored Mars' atmosphere which would inflict a gravity loss penalty.