An Equivalence Between Static and Dynamic Regret Minimization