The base model M2 14“ MacBook Pro is listed at $1999 on Apple’s website. The RAM upgrade to 32GB (that you don’t need today and probably won’t even notice tomorrow, unless running specific very heavy workloads) costs $400.
That’s 20% of the price of a new machine - or the equivalent of buying your next laptop in 8 years down the, road instead of 10 years. These two years are much more likely to make a difference.