There were plenty of 24-core Xeons on DDR4, though none only had quad-channel memory like Threadripper--they were either 6-channel or 8-channel. So for scientific applications where memory bandwidth is limiting, the Xeons could be faster.
I suppose a recent HEDT i9 on dual-channel DDR5 could be similar, although most of the 24 cores would be E-cores.