Not the individual's genes, the individual gene. In all plants and animals it is reproduction combined with mutation and recombination that is driving evolution.
Social animals posses genetic traits which promote social or herd behaviour. In these animals the trait survives because for these animals in the environment in which the trait emerged it increases the chance of survival and reproduction. The gene promotes itself.
Worker ants are infertile. They share common genetic information with the queen. To protect the nest and the queen increases the chance of propagation of their genes even though they do not reproduce themselves. There's probably a gene for that.
I have no idea about infanticide but I do recall hearing of a study recently which observed that homosexual men frequently have one or more close female relatives who are unusually fecund. I can't find the link and the research may have since been debunked but the idea is interesting as it suggests the possibility of a gene which increases the reproductive fitness of one individual while reducing the reproductive fitness of another.
Of course that assumes that being homosexual reduces your chance of reproduction.