A coprimality condition on consecutive values of polynomials