el parentesco

masculine noun

kinship, relationship, relation

"No hay parentesco, solo el mismo apellido."

There's no kinship, just the same last name.