It's really tough to answer your question, because an even comparison between the machines isn't possible. One is going to have more sockets than the other.
Machines with more sockets are always optimized for different workloads than those with fewer sockets. They'll have more memory controllers and the I/O subsystems will be optimized for a lot more throughput. Consequently, they'll perform better at tasks that involve moving a lot of data through memory.
Machines with fewer sockets are much, much more power efficient. If you have a lot of them, you'll save money on electricity and you'll probably be able to pack more of them into a rack. They will also excel at any very tightly coupled computational task, where sharing caches is important, though such a workload is much more rare than the ones referenced above that are memory bound.
None of this matters at all if your workload is I/O bound (again assuming you have the same storage subsystem attached.) Even though your question stipulated that the workload evenly distributes across the cores, you still might find that I/O is your limiting factor, in which case you won't be able to keep those cores busy.