I'll assume you aren't mentioning it to the host, but are just eating it; and that you talking to a friend.
I had to it eat it, but I didn't have to enjoy (like) it.
But you don't really need a special idiom here. It's quite normal to say something quite literal:
I didn't want to offend her, so I ate most of it.