I can't speak to AI performance, but given you're stated goal of lower idle power consumption, I'd go with the 14900K, not the KS as you have listed.
Reason being the $250 price difference between the two, when the KS is just a slightly higher binning of the K with an additional 200MHz on the boost clocks. With that higher boost being something you're unlikely to practically see without a substantial and robust cooling system, I don't think it's worth the extra money.
The reason I'd go with the K over the 10940X is the lower limit on it's power consumption. The E cores are very efficient and can down clock substantially meaning it idles at really low power. The 10940X doesn't have that benefit.
Beyond that, I'd say look at IPC, per thread, per max sustainable clock of each core, to get a general out look on performance.
Note: all of the above assumes we're working within your listed options. My actual recommendation would be an AMD 7800x3d or 9800x3d.