This is only partially a question of language.
First, as a purely linguistic matter, you should look up the difference in meaning between "empathy" and "sympathy." It is not clear which you intend or whether you intend both.
Second, you seem to be seeking a purely linguistic solution to what are moral questions, namely whether we morally owe both strangers and friends an equal degree of empathy and sympathy, and, if so, can humans meet that purported obligation.
You can say
I have great empathy with and sympathy toward others.
That sentence makes no admission of moral fault (if fault there be) at the expense of hiding the truth about your personality.
You can say
I have great empathy with and sympathy towards those dear to me.
That sentence is forthright about your personality at the expense of admitting possible moral fault
If you personally care more for those dear to you, language lets you refuse to acknowledge that aspect of your personality and thus evade certain moral questions. Language also lets you acknowledge that aspect of your personality but thus raises those moral questions.
Linguistically, choose between "empathy" and "sympathy," but don't expect linguistic magic to resolve moral questions.