India's Sensex and Nifty closed nearly flat on Tuesday, as a sharp fall in Hindustan Unilever offset a strong rally in IT stocks.