Depending on your RAM requirements, the following tip may be useful.
In Canada, the entry level M4 Mac mini with 16GB RAM is 800 dollars. Upgrading the RAM to 32GB adds another 500 dollars to the total. That's 62.5% of the base system cost for a basic 16GB RAM upgrade.
It may make more sense to always get the baseline model and upgrade every five years instead of paying for more RAM and hoping the computer will be useful for a decade. Look at the computing power difference between the M1 and the M4. And it hasn't even been five years yet.
I would save that 500 dollars for a future M6, M7 or even M8 Mac mini replacement in a five years. And who knows, maybe at some point the base RAM will increase to 24GB or even 32GB, we just don't know yet.
As others have said, however, this new 16GB baseline may or may not be enough for macOS, especially with "Apple Intelligence". If it can be completely disabled then it's different. And since RAM can't be upgraded later, going with 24GB may not be a foolish decision after all.
This is what I'm doing. I got the base model from Microcenter for $499. At that price point, I do not mind upgrading every 3-4 years or earlier depending on my usage.