The key point about deontological ethics is that your (personal) ethical code must be coherent.
1} Any "code" is something that is constructed over years of experience, and,
2] subject to change, and,
3} that change is more so when considering circumstances alter cases, and,
4} a judgement call on one day may be differrent than another day, because, nobody is perfect 100% of the time, and,
5} over the years we have seen in tv and movies how the lines between good and bad can become blurred i.e. lifes realities are can sometime be very complicated set of circumstances --see #3---, and,
6} whatever other complexities I'm not considering, even after seeing many possible complexities in movies over many years.
Seeing the coherence of ones actions is not necessarily going to be clear to every observer, ergo, others will judge on their limited set of information, that, maybe less or more complete in the amount of data/info involved in the complexities of life and death with trolleys or any other scenarios.
Complexity = less judgemental over shorted time periods of consideration i.e. I dunno is sometimes the only answer.
On the other end we have those who feel they must know, and those type are usually more limited to either yes or no answers to any set of circumstances, and that is less than considerate of a more wholistic set of circumstances.