The "trolley problem" is literally never a valid argument for anything because it purports to create an analogy for a real world problem but does so by creating a scenario that cannot exist, hence any argument based on it is nonapplicable to "real" problems.