Welcome to the site! You don't want a 2013 Mini.... because there is no such thing!
The 2012 Mini is arguably the most upgradeable model. RAM was designed to be user-upgradeable and only involves removing the bottom cover, 16gb is the maximum. Two disk slots inside, not intended for user upgrades so you need to disassemble the Mini, but can certainly be done. The quad-core i7 models are still very nice and have geekbench ratings comparable to the entry level i3 2018 Mini. The HD4000 integrated graphics are arguably the biggest weakness of the 2012 Mini. Apple only supports up to MacOS Catalina on the 2012.
The 2014 Mini was a disappointment for most people. RAM is soldered and cannot be upgraded, max is 16gb. Two disk slots that require disassembly, but one of them is easy to install a SSD. Graphics chips are a bit better, with 2 different versions. No quad-core available and 2012 quads are about 50% faster than the top spec dual-core 2014. It does have 802.11ac wifi and Thunderbolt 2 however. Apple supports Big Sur on the 2014.
The 2018 Mini is a big upgrade from both of these and is the current (and probably last) Intel version (in 2020, Apple dropped the 128gb SSD but the hadware is the same a 2018). Apple doesn't consider RAM to be upgradeable but it is pretty straightforward and many people do it, max is 64gb. SSD is soldered and cannot be upgraded. Nice selection of ports, optional 10gb ethernet and many other improvements. UHD-630 integrated graphics have been criticized, but you can use an external GPU.
The 2020 M1 Mini has just been released and uses Apple's custom silicon. People are just now getting their hands on these. Nothing is upgradeable internally and 16gb is the max.
This site is a good resource for information on the different models.
Tech specs for all Apple Mac mini from the original to the latest (2005-Current). Dates sold, processor type, memory info, storage details, configuration options and more.
everymac.com