Unless the terms of the car rental offer specify that you get bonus MP mileage by booking through UA.com, and you want those points, there is no necessity to book trough UA.com. One can enter the same discount code from UA into the car rental website.