Can recommend this article about why the trolley problem is not very useful:
Adrian Rennix & Nathan J. Robinson - The Trolley Problem Will Tell You Nothing Useful About Morality
https://www.currentaffairs.org/2017/11/the-trolley-problem-will-tell-you-nothing-useful-about-morality/
Also this experiment shows how people would behave when put into such a situation in real life:
Vsauce - The Trolley Problem in Real Life
https://youtube.com/watch?v=1sl5KJ69qiA