Most tablets die from the battery or from lack of support, as tablets are exposed to the risks of movement a lot less than phones. A phone often dies from drop / water.
So whatever you buy in the tablet world, wait for a teardown and look for repairability of the battery so you can reasonably expect a replacement battery 2 years hence. If its popular, particularly if its Android with an unlockable bootloader, then the quantity is your defense with custom ROMs and kernels going strong 1-2 years after the manufacturers stopped supporting. I paid $5 for a replacement battery in my 2013 Nexus 4 phone and its got more modern software in it than most modern devices.
The next most common cause of tablets not keeping useful is RAM size, software tends to get bigger, so I focus on larger memory devices. It matters more than storage as a device can be end its last years as a media streaming device or with a USB storage device in it.
So I try in the case of tablets ignore my opinion, but wait and look in XDA for count of posts.
My 2013 Nexus 7 is still going strong, it will die, probably before end of this year, and I have a candidate in mindā¦
The oldest laptop in this house has a dead non-replaceable battery and bust keyboard, it is a Linux server with a big harddrive on it, I have to plug in a keyboard to reboot it, but its got a useful life yet. I still have a laptop from 1999 which is a backup if the Raspberry Pi dies.