https://press.uni-mainz.de/determining-sex-in-ants/
somehow a male ant has one set of chromosomes while the female ant has two sets of chromosomes. So a male ant sperm must contain enough information to make a complete male? Then when they mate with the female of the other species, the females egg actually gets blanked out so to speak, containing none of the females own genetic material. Then the male sperm fertilizes the egg with one set of chromosomes producing a male offspring that is a clone?
Having genetic differences between males and females is mostly a bird and mammal thing, at least among vertebrates.
Also: the configuration and function of sex chromosomes is not consistent even within mammals. There are a number of species - primarily rodents - with unusual sex-determining systems, like species with XX/X0 (i.e. where males have an unpaired X chromosome) or even X0/X0.