The whole point of "civilized" countries is to guarantee some basic individual rights by not fall into this pure utilitarian vision. Otherwise you can justify all the most dystopian-dictatorish-nazish horrors you want.
If you or your children were dying because some scientists did non-consenting & non-needed test on them to make sure "we build the technology to save million others" you wouldn't find this fair.