Two large Chinese tech startups Meituan and Dianping have agreed to a merger, forming the country’s largest online-to-offline (O2O) platform and presenting a formidable obstacle for would-be competitors in the hotly contested sector, according to two sources familiar with the matter.