To be fair the bit about the kids was to do with him not wanting any, and explaining why. I didn't enjoy the Caitlyn Jenner bits and zoned out didn't really pay attention to the last half hour, but I got a laugh out of the whole description of how celebrity kids end up and then contrasting that with adopted kids, which was amusing because a lot of celebrity kids do end up that way and adopted kids have become popular for some celebs (Angelina Jole/Brad Pitt, Madonna).
I didn't chose to watch it on my own (watched it at a friends) as it's not exactly my taste but thought that segment was one of the better ones. The bit at the end with the adopted kid having broken in, as soon as he mentioned adopting a kid you could see those jokes coming a mile away. I wouldn't really classify it as racist, just dark as it was used in the overall story contrasting it to how a white kid would be perceived by social services. Overall a bit hit and miss, imo.
That's the set up, yeah. But what's the joke? There's writing to establish the topic (which is the very least you'd expect from a conversational stand up) but then very little connection to the actual joke/payoff/funny bit, which tends to just be him laughing at the idea of his baby dying, or Caitlin Jenner having a big dick (2018!!)... It's pub conversation stuff. Chat show patter at best.
For an example of what he wants to do, look at an Anthony Jeselnik set. He's not only way more offensive (trans jokes, dead baby jokes, all the hits!) but he's offensive in a structured, written way, that allows him to get laughs from the jokes as opposed to the mere concepts.
Take this clip. It's not the greatest example (there aren't a lot of clips of him online, unfortunately, but his special is on Netflix if you fancy it) but he does two things in it that Gervais tries to do in Humanity. 1. Tell a dead baby joke, and 2. Explain why it's funny.
It may not be the best gag, but it's a gag. With a set up and a payoff. And the explanation is an amusing, ironic continuation, rather than a faux ironic excuse to
actually explain the joke.
Look, I don't want it to seem like I'm just shitting on Gervais for the hipster lolz. I genuinely think his early work is GOAT level. I've got the scripts to both The Office & Extras on my desk.... But his stand up has always been a bit ropey (he was already famous when he started, meaning he's never really had to hone a set - less and less so as they've gone on ) and this one is just the final proof of his irrelevance. Talking about Caitlin Jenner and the Golden Globes three years out of date, and padding the rest with stuff he's already covered in Podcasts and Interviews. There's a reason he's so obsessed with being "offensive". It's 'cos there's nothing else topical or relevant about his schtick anymore.
For an even longer rant... See this pretty spot on (IMO) article.
https://thebaffler.com/latest/what-happened-to-ricky-gervais-james
If he continues on this track, I can see him becoming a cranky right wing Bernard Manning type in a decades time. The irony being he's rapidly attracting the kind of unironic Al Murray crowd he obviously considers himself so superior to.