I guess from this post that you are in your teens, Your parents have invited guests over and now expect you to play to entertain these guests (probably not your friends but friends of your parents). Both boring and possibly embarrassing! So why do your folks put you through this, especially if they know that you do not like it? First, remember that adults, boring old farts that they may appear, are useful for some things like buying a piano, paying for lessons, supplying you with cash, putting meals in front of you etc., etc. They are proud of you and your achievements and naturally want to show this off. Kudos for them (and brownie points for you). Why not accept the invitation gracefully? By doing so you will please the folks, and perhaps more important, gain experience of performance in front of an audience. This is always useful.
Some contributors to the post complain that having been invited to play, that they do not listen. That they talk through your performance. I am sorry to say that not all adults have good manners. Also, most of the general public (which includes these guests) have very little knowledge of or appreciation of classical music. Possibly they are frightened of it because it is something that they do not understand. You have the advantage having studied it and put blood sweat and tears into attaining a good level of performance. Therefore these poor folk need your help. Since they will recognize a familiar tune why not play something that they are likely to have heard before. Works like Fantasy Impromptu, Chopet Op 10 No3, Revolutionary, Eb Nocturne, etc. come to mind, or possibly a familiar Schubert Impromptu. In fact, no need to play the whole work - just the bit that they are likely to like. They will ask for more if they are really interested.
Now you have earned brownie points with your folk, gained some respect from the guests (you can do something that they can't), added to your performance experience and can now gracefully exit feeling good. OK if they are not listening then that is their problem not yours.
Best of luck next time it happens.