For Discourse, you should favor fast cores over more cores. If you can get both, that’s even better (for load scenarios). But in the typical case, 2 fast cores will do better overall than 4 slow cores.
We tend to measure this in build time, here are some examples. But any single threaded benchmark will also do.
Ideally you want a build time under 4 minutes (240 seconds).