Mahindra & Mahindra (M&M) has become the second most valuable automobile company in terms of market capitalisation (market cap), surpassing Tata Motors.