IT stocks including Infosys and HCL gained while banking and consumer stocks fell on geopolitical worries.