"Ethics" is subjective, there is no such thing as an objective ethics (unless you are religious).
This is why thought experiments like the Trolley problems don't have a simple answer.. and they get even more complex with variations of the thought experiment.