I’ve seen two kinds of scuttlebutt online about “what to write.”
A: Write what you love and what you want to read!
or
B: Research the genres that are selling and fit your writing to that mold.
One of my personal rules is to maintain my own integrity, so I’ve been following advice A (which is how I ended up writing a 63,000 zombie apocalypse gamebook/CYOA). And yet I have fits of anxiety when I see things like this:

This is an edited version of a list of agents who will be at DFW Writer’s Con and what genres they have a particular interest in. (I added the highlighting and cropped out the agents’ names. You can find the full list here.)
The yellow areas are Middle Grade and Young Adult respectively. Look at all those delightful excited happy faces!
The blue area is science fiction. Only 3 happy faces and one big ugly poison Do Not Talk To Me About This.
Hm.. Zombie apocalypse. Gee, where does that fit? Blue column of sadness. Maybe horror (it’s not really that scary, though) or humor (because being a zombie is funny!). Well crap. Those columns are pretty depressing, too, 2 and 4 happy faces respectively.
The agent pitch sessions are one of the most exciting parts of DFW Con, but dangit, I don’t think I’m going to have a lot of success this year. I’m in all the wrong categories. (Though I feel a certainty in my bones that just about every adult would get a real kick out of determining their own path in a zombie uprising book. I was talking about it with a friend in a restaurant and a passerby interrupted to say “excuse me, did you just say zombie apocalypse CYOA? Cool!”)
And my prior novel that I’m not actively pitching? Squarely sci-fi dystopia. *sigh*
I have no real interest in writing YA or MG (aside from a dalliance with The Boxcar Kids, as a kid I never even read books that would fit those categories!), but seeing this kind of heavy-loaded listing is depressing and has made me wonder if I should be trying something different. It’s hard to do while continuing that whole “to thine own self be true” stuff, though.