Amazon, Reliance and Walmart Inc's Flipkart are in a battle to gain market share in India, where millions of middle-class customers are newly adopting online purchases of food and groceries due to the COVID-19 pandemic.