20 years is too long in the past, so indeed computers were more expensive then.
But if we go only 15 years in the past, to 2011, we find the same price per GB of DRAM as today, so that affordable computers had only 16 GB of DRAM.
2011 was actually the last year when I bought a computer with only 16 GB of DRAM, but today I hope to not need a computer any time soon, because I would not be able to buy as much memory as I want and as much memory as I have in my old computers, bought at a time when they were much cheaper than today.
Not only DRAM, SSDs and HDDs have exploded in price, but also the mini-PCs with Intel or AMD CPUs have a double price than last year, when bought as barebones, without memory.
For now, it is not obvious how much the prices have increased, because there are on the market a lot of obsolete computers that have remained unsold from the previous years, and which are cheap, but if you would want an up-to-date model that would be a true upgrade over whatever old computer you have, then the price is steep. (That means that for example in the case of barebone mini-PCs you can find cheap models with Intel Arrow Lake H or AMD Zen 4 CPUs, e.g. around $500, but the corresponding models with Panther Lake or Zen 5 are double in price, e.g. around $1000.)