Tesla Inc. delivered a record number of vehicles in the second quarter, beating market estimates after the electric carmaker increased discounts and incentives, the company reported on Sunday.