Gradient estimates and comparison principle for some nonlinear elliptic equations