It depends on your typical use case. If you use large, deep sample sets (sampled grand pianos) or do a lot of video work (where gigs of data in memory can speed up editing) the memory is a good idea. 6 cores is usually plenty, unless you’ll be running a LOT of plugins simultaneously. Remember that 6 core processors typically have slightly higher single core speed than the 8 cores, so the tradeoff here isn’t linear - if your workload doesn’t easily scale across a lot of cores then you’re wasting the extra cores and losing speed at the same time. That said, if you use loads of plugins or soft synths, the extra cores could come in handy versus the speed loss, and since most of those synthesize their data, the memory utilization is not terrifically high.
Basically: lots of (smallish) plugins and not a ton of samples = more cores, less memory. Sample heavy and/or compute-intensive plugins would push you towards more memory and faster cpu, tradeoff against core count. It’s an oversimplification, but it should give you a clue as to what will serve you best.
And if you do a lot of video editing, focus more on the GPU than the CPU (tradeoff a much better GPU like the Vega options against the more expensive CPU) and buy as much memory as you can afford.