Well if you are planning on keeping the system the same length of time (4 full years) with no intermediate upgrades, then either LGA1700/AM5 is going to serve you well. However as always it depends on what your system is used for, and if that usage will stay the same or change in the near future.
I guess you also need to look at upfront costs, and if there is a limit to your budget. I certainly wouldn't want to be on a DDR4 system in 4 years time, but that again depends on your use case. A good B660 board with a 13700F (not KF) and some ~£165 DDR5-6000 would be a good choice for optimal price and performance, across gaming and productivity, but you might want a Z690 if you connect lots of peripherals to your system. AM5 is also an option but the CPU prices and board prices will push up the barrier to entry for arguably less performance in certain tasks, but have the benefit of long term sock support, with a potential significant CPU upgrade in a few years, much like people moving from a R5 1600 to a 5xxx part or even an 5800 X3D have had recently, extending the life of the system several more years.