I've always hated this trope, no matter how realistic it is. It's like no person in these universes has any form of critical thinking to think "huh, this guy's a murderer, but his child is a completely different person, so let's treat him as such" and shun a kid for almost no reason.