Both are able to run current software, so I'm sticking with them (although the laptop is going to my wife) for as long as they're supported. I also have a very powerful 2018 i7 Mac mini, which is my main desktop video editing machine and a 2015 i5 laptop.
Some can run Catalina, one is stuck back at Mojave, but none can run either Big Sur or the upcoming Monterey.
I have a 2013 iMac, three 2012 Mac minis, and a 2011 Mac mini. I have a bunch of very reliable, very functional, very old Macs.