I wouldn't worry about what is "outdated" anymore, everything is going to stall at these prices and older PCs will retain value and usefulness much longer. Look at the actual performance for the actual dollars spent. Locally I can get a 5800X for 1/3 of the price of a 9700X + 32GB ddr5 + mobo. 1/3 of the price for 70% of the performance seems like a no brainer, but it depends on your workload and requirements.
I've been on am4 for 6 years and will prob stay on it for another 5 years at this rate.