Finish the class. UC’s also admit on the basis of your senior schedule and do not like you to change it and definitely require notification. Now you have asked and they have told you to keep it so you have no choice. Get sick the day of the AP exam if you want. I would be surprised if Rice would accept the credit anyway.