Or you can install a Linux distribution, that will be supported even longer. For web browsing etc, it will be still usable for a long time. It can happen, that your computer will fail hardware wise sooner, than it won't get any software support anymore.
Depends on the computer. Those older Macs were built to last. Sure they have received their share of unintended damage (drops and bumps), but since they're repairable…
Oh the so-called "Linux a la rescate", I don't buy it anymore. In theory, yes, Linux can help extract more life out of outdated hardware. But is it worth it? As
@amgff84 points it:
I’ve tried a dozen or so Linux distros on this computer and every single one has issues. Anything from overheating to sleep issues. Windows 10 on Bootcamp works 100%. It’s probably something to do with dual switching graphics and how apple does it differently. I’m guessing I wouldn’t have those issues on an older 13” with Intel graphics.
My most recent experience with Linux on non-free hardware:
2008: Ubuntu on HP computer with ATI graphics: a week fighting against the driver before finally finding a solution. Had to use it because I was dealing with monstrous cellsheets at the time, and Ubuntu was simply better at managing RAM than Windows XP. Didn't have the money for a Mac back then.
2009-2012: Exclusively used MacBook and MacBook pro. Didn't have the need for Linux since the Linux pieces of software I was using were ported to Mac OS X.
2018: Ubuntu Mate on LG computer. Many tweaks performed, lost the count of them, but shows tons of warnings and error dialogs on first opening session. Doesn't really hamper functionality, but annoying nevertheless. Don't have time to deal with it anymore.
2022: Mint can't even fully work "out of the box" on a plain, Acer-branded computer just because it happens to use an nVidia graphics chip. Tried to repair it, asking questions on forums, back and forth, until I didn't have the time to deal with it anymore. Problem unsolved, computer taking up dust in a corner.
For me, the most comfortable Linux experience has been in VirtualBox. As long as I don't forget to make a snapshot before any delicate procedure, it's fine. Otherwise, even with all the good will of the volunteers spending all their time helping others on forums, sometimes one just needs to get work done, not tinkering endlessly.
And, what's the point of using a Mac to run Windows? Back then the MacBook Pro was touted as "the most comfortable PC to run Windows on", or something of the sort, but unless one only has enough money for one computer, there are more versatile machines to run Windows on.