Electrolysis...
M+H2O→MH+OH
2MH→2M+H2
MH+H2O→M+H2+OH
where M is a metal with an unpaired orbit and,
M+OH→MOH
If copper, Cu is used as electrodes, the formation of CuH will turn both electrodes red. However, since the equations above do not involve charged ions explicitly, they can occur at both the cathode and the anode during electrolysis.
But...only at the anode (+),
2OH→O2+2H+
the H in OH looses an electron, turns positive and is ejected. Two O atoms forms O2. The positively charged H+,
H++OH→H2O+
forms water with a positive charge, H2O+ and moves to the cathode.
Only at the cathode (-), because of the positively charged H2O+
M+H2O++e−→MH+OH
then,
2MH→2M+H2
and more importantly, the main H2 producer,
MH+H2O++e−→M+H2+OH
In this scenario, O2 gas starts to form at the anode first, after the positively charged water, H2O+ has migrated to the cathode does H2 starts to evolve there.
Because of OH forming H2O+ with H+, a membrane to allow just H+ is futile as it is H2O+ that transports the charges in the electrolyte. Metals without an unpaired orbit and so do not form metal hydride, MH, cannot be used as electrode because the the formation of metal hydride MH is part of the H2 production process.
It is possible to block just the formation of H2 by blocking the passage of H2O+, as the needed OH are produce at both electrodes.
The metal hydride MH, must remain structurally on the electrode to act as a catalyst and not contribute to electrode corrosion. Since OH is produced at the cathode and MH is reverted to M with the evolution of H2 there, and the production of O2 does not involve MH, the anode can be made of any conductive and oxidation resistant metal without the concern for metal hydride formation. In this case OH will have to first migrate to the anode for O2 production to start. (The metal hydride formed at the anode does not revert back to metal, and will eventually insulate the electrode completely. In practice, the electrodes are swapped periodically.) To facilitate O2 production then, OH can be introduced into the electrolyte as NaOH. An alkaline is added to water instead of acid or a alkaline metal salt.
It is likely that the production of OH is the reason behind the increase in efficiency when acid or alkaline salt is added. For an acid,
Hsalt_part+H2O→OH+H2+salt_part
and for an alkaline metal salt,
Msalt_part+H2O→OH+MH+salt_part
It is not the conductivity of the electrolyte that matters but the availability of OH.
Next stop, fuel cells...