Both work and all good pumps do both. Both won't work well with inferior equipment.
I prefer Shrader and did all my tubeless Shrader. Shrader works to 500 psi in refrigeration. Those Presta adapters need to be tightened just a specific amount. Just another hassle.
With good equipment Shrader doesn't lose lot of air when removing the chuck. I lose more when closing that Presta screw. I'm talking about under 40 psi. I undetstand for road pressures it may be reverse.
So there is good reason for the one or other. It comes to personal preference. Like Shimano or SRAM, or mineral oil vs DOT.