Sensex and Nifty close flat amid volatile trade, quick commerce and private banking shares rise, oil & gas and IT shares fall.