Social discrimination by quantitative assessment of immunogenetic similarity