I just remembered what this reminded me. This ethical test for a situation or system, that I was taught as the Veil of Ignorance: en.m.wikipedia.org/wiki/Original_position

Or in this case, would you still design a trolley system that runs people over if you didn’t know which person you’d end up as?

Original position - Wikipedia