As we know, buying an older phone can be a big security risk, as it might not get updates anymore. How about laptops? i would install Linux on the laptop. Is it a security risk to buy a used and refurbished computer from maybe 2019?
Age is only part of the equation. Older ones can be more secure but you have to go further back and think of more than just the hardware. The big thing is to try to get a laptop that is sold using a non stock BIOS or be comfortable doing the work yourself. Libreboot; Coreboot; or something like it. After that try to use as free as an OS as you can such as Trisquel; Guix; Hyperbola; etc. There are lots of stores that sell laptops that are more secure out of the gate:
Basically a computer is only as secure as you are willing to make it. You are limited by the hardware but you choose the hardware so you're only really limited by yourself.