That maybe raccoons and red pandas are more related.
It is known that red pandas and giant pandas are an example of convergent evolution. This means that even though they don’t have common ancestor, they have similar adaptations. It is because both pandas live in similar ecological niches, do and eat similar things (e.g. bamboo diet), they’re faced with the same challenges and thus, evolve similar adaptations.