Beavers and raccoons cannot mate. They are different species in different families:
Beavers are rodents in the Castoridae family.
Raccoons are carnivorans in the Procyonidae family.
Like humans and dogs, they are too genetically distinct to produce offspring.