Image quality is a given in almost all cameras post 2016. The differences now come down to handling, operation speed, video features and quality, and overall shooting experience.
Among others, I still use my Canon 30D from 2006, 5D Mark II from 2009, Leica M9 from 2010, and Olympus E-M5 from 2012. Prosumer and mid-pro cameras from the late 2000s onwards are still viable, and anything post 2016 is fine for general consumers and many pros. I know a pro sports shooter who continues to use a Nikon D700 and D3, he's been using them for over a decade and he says he'll probably retire from photography when they give up the ghost.
I no longer use compact cameras like the Canon S45, S70, G10, or Fuji F30 and even the X10. Compact cameras came into their heyday around 2010-12 with models like the Panasonic LX7 and Sony RX100, and everything since then has been gravy.
My most used micro four thirds cameras are the GX85 and G9, which was released in 2016 and 2018 respectively, making them a surprising 8 and 6 years old. With careful exposure and processing, they produce superb image quality that can be used for all everyday purposes and quite a few paid scenarios. Given how good they are, my more recent Panasonic S5 could last at least another 5-10 years before I really feel the need for better image quality.