The Diophantine equation $f(x)=g(y)$ for polynomials with simple rational roots