If I could reliably run a newer OS on an 8-year-old iMac, I would. But since I can't—and because the only thing I use the machine for is web browsing—the relevant question is which browser will be the safest.
Compatible ≠ runs well. My iMac was not top-of-the-line, and I could see from how newer OSes ran on my other machines that it would be sluggish on the iMac.