Basically, all lives are equal beyond any measure. The examples you stated here are very specific and define only human preferences in very specific situations, lets say you are in a war you are going to defend your mates even if they are criminals and not bringing any use to others while you would attack your enemies even if they lovely and useful and being joy to their families. This example is specific also.
Another point I would like to outline, the value of a human life shouldn’t depend on how much joy it brings to others, because it implies selfishness and utilitarianism.
RE: What is the value of a human life? Are we really all equal?