Yes, you can drive with a rental car to Khasab with proper documents. You need to obtain an NOC document from the rental car company to take the car to Oman. Insurance for Oman also needs to be purchased at the border.