Expedient
noun
a means to an end; not necessarily a principled or ethical one
adjective
appropriate to a purpose; practical
“in the circumstances it was expedient to express loyalty”
adjective
serving to promote your interest
“was merciful only when mercy was expedient”