in fisics we are used to compare one sistem we dont fully understand with another that we understand little better...
i would propose you to think about this analogies
capacitor inductor resonates as a spring and mass...
a transformer is like a lever or set of pulleys to transform torque
a diode is like an unidirectional pulley (like that in the bicicle) or could be saw as sometihng that transfer couple torque or force in one direction but uncouple when the force come from other direction,,,