To sympathize means you understand how another feels.
To empathize means you feel the same way.
“Empathy is the ability to mutually experience the thoughts, emotions, and direct experience of others. It goes beyond sympathy, which is a feeling of care and understanding for the suffering of others. Both words have similar usage but differ in their emotional meaning.”