I think the question is a very, to put it mildly, useless question. It’s a typical example of an analytic philosophical thought experiment, which is has basically nothing to do with real life. No one has ever been in a situation as it is described in the trolley problem.
That doesn’t mean that sometimes, unfortunately, we are in situations where we are where we experience a moral dilemma. Of course we’re often in a situation where we experience a form of moral dilemma. But moral dilemmas are always concrete, and you always experience them under specific conditions, in a specific context that is very complex. You have specific means to make the decision, and practically never are universal moral principles even helpful to make that decision.
As a matter of fact, moral principles are I would say empirically never really used to actually decide moral dilemmas. They are used after the fact to justify a decision, which is a typical form of moral communication.
The trolley problem itself is shit.