it's a really bad time to invest in a pc but you should decide based on your requirements.
btw DDR5 is already out (although outrageously expensive at the moment) but since you're planning to use this system for a prolonged period of time going with newer tech can be beneficial. it's something...