Not the same genes, they are different species and produce sterile offspring, this is because they have different numbers of chromosomes (strands of dna that carry thousands of genes)
i think you have slightly miss understood what he is saying, it is still the same genes being mixed up if you cross a donkey with the horse or a horse with a donkey