In general, the diaphragm will seal better* than a piston. But the piston can take higher pressure differentials/compression ratios, and won't suffer from eventual fatigue failure like the diaphragm will.
* do realize sealing hydrogen is a bit like herding cats - it diffuses through solid materials.