A comparison principle for the mean curvature flow equation with discontinuous coefficients