Beyond Backpropagation: Bilevel Optimization Through Implicit Differentiation and Equilibrium Propagation