Equivalence of gradient flows and entropy solutions for singular nonlocal interaction equations in 1D