I think it does make you an accessory to racism, especially when it’s such an unbelievably clear example like one you describe here. “Oh yeah I’d love to but I can’t cause my dad hates black people.” It almost sounds like your friend is poorly using his dad as a weak excuse to cover up for his own racism. That’s nuts…