I would take the best you can afford.
Lightroom is CPU intensive and doesn't use the GPU a huge amount but may do in the future. Single core high clocks for adjustments, pushing 14mp at 60fps is very taxing and high clocks with short bursts is ideal. The i9 up to 5GHZ will ensure that moving the exposure slider while you have noise, sharpening and lens adjustments on more fluid.
Lightroom works really well with flat raw files making normal adjustments but once you add the computational adjustments like clarity, dehaze, sharpening, noise, lens adjustments and healing it makes the machine crawl. Usualy I will make my adjustments and add sharpening and noise at the end as it really makes a big difference to how the app performs while editing, whereas not long ago i would have these added to my import presets to save me time but the machine would be slow to make edits and be frustrating to use. Now I just make the amends when I finish I add another Sharpening and noise preset to all of them and export.
Any of the CPUs will be fine but I would go with the fastest clock CPU which would be the i9 I would take the 512 as a minimum and I would take the Vega 48 for future use.
The iMac is pretty good as you have 2 TB3 ports so expansion of fast storage or archive is easy to achieve.
At the end of the day its down to budget. For example I bought a base line 2017 (I found one really cheap) because the K processors throttle and the non K were roughly 5% difference in performance in real use and when the K versions throttled they were only about 10% quicker. Hyperthreading also isnt that beneficial for photographic workflows as the apps dont really support it until you get to export rendering.
Im a professional photographer and it mine runs ok but its not exactly fluid. On the other hand im yet to use a machine with my 50mp raws that is fluid in LR its just not that well optimised. Its not necessarily any of the machines fault its Adobe and their optimisation, same with premier.
I also found mine 10 months old with applecare and the trackpad for £1150 and saved £1000 off the bat. I found the iMac pro to give no real world benefit over the normal imac in the program itself (again its lightroom not the machine). In app speed is far more important to me that export. When I export I walk away and come back to send out.
In app performance is far more important. Say your shooting a wedding and you have 500 images to edit and when you zoom to 100% it takes 3 seconds to render that view your basically sat waiting for 25 minutes waiting for renders in your editing time, that's if you only zoom in once per image. Just one example but if your doing a lot of big jobs it might make more sense to buy more power to save time.
In all honesty the difference between the 2017 and 2019 for photographers is negligible as the programs arent optimised for the tech and export is the only time lightroom will use all the cores. Your probably talking 10s of seconds rather than 10s of minutes difference.
Like most photographers in time you will probably evolve into shooting some kind of video so worth baring that in mind, if its a long term machine 3-7 years then go all in. For £3600 you can have the i9 512 8gb vega 48 and add 32gbs of ram yourself and you have a machine that will outperform the base iMac pro for photography and depending on the codec video production too.
I stuck 32gbs of ram in mine, bought a Samsung X5 for 2000+mb/s read and write for boot and an OWC thunderbay 6 for redundancy and fast cache.
https://eshop.macsales.com/item/OWC/TB36SRKIT0/
It has 6 bays for Raid5 which I use for archive and runs at around 400mb/s which is great, it also has an M.2 NVME slot for fast project files and caches. Whats nice is it has 2 TB3 ports so the X5 is attached to the second and still runs at full speed and it has a display port which I attach my 27" apple cinema display as a secondary. All through one cable so its very minimal on my desk on cable for power one TB3 cable for my storage.
For me I use about 4tb per year in data so having something you can expand is important. For wedding photography obviously you have a duty of care to ensure images are safe for clients.
The nice thing about this is if I want a new iMac I unplug one cable remove the machine and replace it with another and im up and running in exactly the same way.
Hope that helps.