Tooth Extraction vs Root Canal?

J

So, I have some sort of infection/abscess on my right, second molar tooth and dentist gave me an option.....what's better? Why? Experiences?