A lot of the threads in the Writers Discussion focus upon what YOU can change in how you write comedy to improve your chances of success.
On the other hand, you (as comedy writers) are always advised to "write what you find funny".
These two pieces of advice are (mostly) incompatible and contradictory.
You can advance - and get your scripts noticed - by writing the comedy you find funny. However, this is a far slower route. Why not just write a pilot script along the lines of what is currently considered funny? Well, the problem is that commissioners' tastes change all the time. They want originality, something new. But they also want something that reminds them of another recent comedy show - but not so much as it's too similar.
What do network comedy people/indie producers want?
It might have been the question Freud should have asked.
My advice?
Write want you find funny, in the script structure you find funny. Try to follow the rules of a half-hour sitcom however. If you don't know what these are, you haven't watched enough sitcom - why do you even want to write it, FFS?
If you're not a funny writer, you won't succeed at all by this method. Go on some courses, read some books, workshop and leap towards every opportunity.
If you are a funny writer you'll still spend (probably) years waiting for your comedy to be realised. If you're not a naturally-talented comedy writer, then compromise, compromise, compromise. Feel no shame. You may still not make it. However, you may get ahead of the naturally talented comedy writer by compromising.
Here's the downside - neither the naturally-talented comedy writer nor the hack comedy writer are guaranteed success. There are a lot of both of you. But it's up to you to choose...
Do you want to be the (potentially never-successful) original comedy writer?
Or do you want to be the (potentially never-successful) mediocre, compromising comedy writer?
Not a great dilemma, is it?
Good luck, comedy writers! (But most especially the naturally-talented ones. And most especially.... me.)
Maybe you should just quit now, forget about writing narrative comedy and have a happier life?
This is not a negative message.
Because, either way, you'll ignore this advice.