Either processor might be OK, but if you are constrained on cores, I would put in as much memory as is practical. I would also lean more towards 6 cores than 4. I have customers with 144GB of RAM. Certainly 32GB should be a starting point. But all of this depends on your application and the number of concurrent connections.