On the equivalence of the mechanisms governing switching and hysteresis phenomena