Both “The Ones Who Walk Away From Omelas” and https://kate.frykberg.co.nz/2014/08/01/inverting-the-hierarchy/ do this.