Hydrogen carries energy; producing it requires a feedstock and an energy input. Water electrolysis uses electricity. Reforming converts a fuel and steam into a hydrogen-containing gas. The emissions and efficiency belong to the complete route, including that energy supply.
A fuel cell produces electricity through electrochemical reactions while fuel and oxidant are supplied. In a hydrogen PEM cell, protons pass through a polymer electrolyte and electrons flow through an external circuit. Water forms at the cathode.
A membrane reactor combines a chemical reaction with selective transport. Removing a product while it is formed can change the reacting mixture and allow an equilibrium-limited reaction to proceed farther than it would in a conventional reactor under comparable conditions.
Hydrogen can be produced by converting a hydrogen-containing feedstock or splitting water. A production route needs both a material balance and an energy balance. Calling the product clean without specifying the feed and energy supply leaves the main question unanswered.
Hydrogen purification removes unwanted constituents from a hydrogen-containing stream. Pressure swing adsorption retains impurities on adsorbents. Membranes separate through material-specific transport. The preferred arrangement depends on feed composition and the product required.