Plane wave scattering by a planar metasurface composed of two periodically alternating rectangular dielectric rods is considered. A rigorous integral equation methodology is employed for the analysis and the accurate determination of the reflected and transmitted fields. Systematic optimizations with respect to the configuration's parameters are performed, which reveal that it is possible to obtain significantly enhanced anomalous reflection (with simultaneously suppressed ordinary reflection predicted by Snell's law) with power varying from 92% to almost 100% of the input one, depending on the color of the incident light. It is shown that these reflection properties are supported by metasurfaces easily realizable with specific low-loss dielectric materials. In this way, several all-dielectric optimal designs are reported that can be used in numerous applications demanding anomalous reflection in the visible range.