These decisions interface via binding sites[1] which can be thought of as having "bias".
Basically it could be that the egg and the sperm have different proteins expressed on their cellular surfaces which go together like a lock and key and may also function as attractors ( chemical sensing or something).. all of this would originate from genes in the gametes.