Unless you KNOW for SURE that you do not have any moisture concerns, you can go with the foam. Just make sure to tape the joints.
If you have ANY questions, go with the the Dri-Core or similar product.
You want a path for any possible moisture to find it's way out.
I live in a high desert, very arid environment. There is sand under my house. I know for a fact that any water that does make it into the basement will drain away. My neighbor's house burned down, they pumped 5K-10K gallons of water into the house. By the next morning, there wasn't any water in the basement.
I plan on using something like the Dri-Core product.