Is emotional-based giving against EA?

Hi! So I was seeing that in the book “Doing Good Better”, MacAskill gives the example with the Fistula foundation and says even though he feels an emotional connection to the disease suffers, he won’t donate to that cause because he believes he would be “privileging the needs of others simply because he happened to know them.” Is it wrong to give to causes that personally effect your local community or a specific disease just because you are “favoring them” because of your emotional connection? I mean, obviously I think most people would hypothetically choose to help their loved ones over strangers, right? or is this against EA beliefs?