Philip K. Dick said this quote

If practicality and morality are polarized and you must choose, you must do what you think is right, rather than what you think is practical.