What’s On: ‘Good Place’ Gets Glitchy, ‘Superstore,’ Beverly Back on ‘Will & Grace,’ ‘Better Things’

Ted Danson and D'Arcy Carden in The Good Place - 'Janet and Michael'

A critical checklist of notable Thursday TV:

The Good Place (8:30/7:30c, NBC): This week’s TV trivia: What do the perky robot Janet (D’Arcy Carden) and The Good Doctor’s Shaun Murphy have in common? Neither are very good at lying—or so the theory goes in one of the wildest episodes yet of this endlessly inventing fantasy-comedy. As Michael (Ted Danson) tries to get to the root of Janet’s glitches, which are creating earth-shaking panic in the good/bad place, he has to consider his own feelings for this endearingly offbeat creation. (News flash: There are also bad Janets.)

NBC’s solid comedy lineup includes a very funny Halloween episode of Superstore (8/7c), in which a dead body found within Cloud 9’s walls creates farcical complications among employees and shoppers who think it’s just part of the holiday act. … And the guest-star parade continues on Will & Grace (9/8c), with Leslie Jordan returning as Karen’s (Megan Mullally) sassy frenemy Beverly Leslie, and New Girl’s Max Greenfield playing an obnoxious mogul who could be the key to Grace’s (Debra Messing) most lucrative job to date.

Better Things (10/9c, FX): Each week, with a different slice of Sam’s (Pamela Adlon) messy domestic life, I’m more enamored of this smart and deeply felt comedy. When a blackout temporarily shuts down all activity on the homefront, Sam tries to keep her cool while her daughters panic. Which leads to a fateful trip to a DIY store, and an exchange with her platonic fellow divorced parent Jeff (the terrific Greg Cromer) that may be the single funniest scene of sustained sexual panic this series has yet produced.

Inside Thursday TV: Juan Diego Botto, the breakout hunk of TNT’s Good Behavior, can be seen in his native habitat in the Spanish thriller Lifeline, streaming on Walter Presents. It’s about a famed surgeon who receives a heart transplant and begins investigating the mysterious death of his donor. … In a change of pace episode of ABC’s Grey’s Anatomy (8/7c), the story flashes back to 2007 Iraq where so much drama unfolded involving Owen (Kevin McKidd), Megan (Abigail Spencer), Nathan (Martin Henderson) and Teddy (Kim Raver). … The great Loretta Devine (The Carmichael Show) is back on The CW’s Supernatural (8/7c) as psychic Missouri Mosley, who asks the brothers for help in protecting her granddaughter, Patience, who shares her gift and could be at risk of a wraith’s wrath.