Commercial 9mm seems to be a fair bit cheaper than 40.
If you reload, the difference is not as much.
I know this is not your question, but If I were choosing I would go with the 9mm. I had a Glock 22 & found it to be a very snappy recoil & not that pleasant to shoot. But I realize that was not the question. Just putting in an opinion.