To calculate the electric field due to an infinite plane sheet of uniform charge density σ, We choose two different gaussian cylinders as shown in figure (I) & figure (II). The appropriate choice is figure (I) because

Know your College Admission Chances Based on your Rank/Percentile, Category and Home State.
Get your JEE Main Personalised Report with Top Predicted Colleges in JoSA
For S2, field is not radially outward and same at all points on the curved surface.