Reversible devices do exist, but it in most applications there is more value to optimizing the operation for either hydrogen production (electrolyzers) or electricity production from hydrogen (fuel cells).