It's uplifting if you ignore that the AIs trapped in the episode are sentient. Otherwise, it's basically basilisk territory. Create 100 clones of yourself, torture them until they reveal the best outcome.
https://en.wikipedia.org/wiki/Speciesism#%22Discontinuous_mi...