two ethical frameworks. A utilitarian perspective evaluates an action purely by its consequences. If it does good, it’s good.
A deontological approach, meanwhile, also takes into account aspects of the action itself, like whether it adheres to certain rules. Do not kill, even if killing does good.
No one adheres strictly to either philosophy, and it turns out we can be nudged one way or the other for illogical reasons.