If you are a smartass you can skip this step and go straight to showing your superior intellect. For those who aren't midwits, stick with me for a little bit.
So a small mental experiment, mkay? Let's not go crazy over here. Let's assume there is a djin somewhere on the internet, or was it Robin Williams?

Anyway, there is someone who PMs you. Now, you think, this is an AI scammer again! Fuck 'em clankers! ?

But the person starts by saying, "I will give you 1 million dollars if you write this story." ?The trick is, this persons asks you to write a genre you really dislike or outrights hate. ?
Before you start let me elaborate a little bit further.
First things first, what is a genre? To make it easier for us let's just use SH's genre list. You can also add stuff like Kingdom Building stories, Korean academy stories, Japanese villainess\villain stories, and Chinese cultivation. What is NOT a genre? BDSM, futanari, netorare, blacksmith MC, vampires, and so on. In other words, tags and tropes.
Second part. Since smartasses left us way back, I will talk to you, yes you! ? Let us talk one-on-one, mano a mano, face to face. Let's not try to weasel our way of this curious predicament, mkay? Let's not say, "Well, I hate harem, since I have to write it, I will simply make it into a setting without MC actually having multiple lovers." Let's not. We all write, we all can play with words and stretch the definition of a term to the point it blows up like a balloon. Since this is a mental experiment made for fun, let's think of how to fix the genre while still respecting it.
Phew, can't believen I've already finished. Now I can't wait to read, like, three replies in this thread! Two of which are going to be smartasses saying how they would've made different rules, and one person saying the didn't understand what to do. Bring it on lads!