The two machines' raw processing capability in a fully-utilized rendering environment (background rendering in Final Cut, encoding with Compressor or Handbrake etc.) is decently illustrated by the following 64-bit multi-core
Geekbench 5 benchmarks...
6-core 2.6GHz: 5,406
8-core 2.3GHz: 6,656
The 8-core 2.3GHz shows a 23% improvement assuming sustained thermal capabilities.
The 6-core machine also has a 5300M instead of a 5500M GPU (unless you optioned it up yourself), which is another relatively significant improvement for a video editor.
32GB of RAM is plenty for video, but if you're doing 4K and plan on keeping the machine 5 years or more it wouldn't hurt to get 64GB. Getting the 8GB VRAM card would add some longevity as well, especially with larger frame sizes.
The difference between the 2.3GHz and 2.4GHz is pretty small and given the thermal limitations of the small enclosure it wouldn't necessarily post a as large of a benefit as it may seem.
My recommendation would be to get the 2.3GHz 8-core, 32GB RAM (64GB if you do really heavy work, in which case it would pay for itself pretty quickly), 8GB VRAM, and pay a little more attention next time you drop over $3,000.