Both cases headspace off the case mouth. There are lots of people who use 40s&w in 10mm pistols and rifles, but this depends on the extractor to hold the case against the bolt face, rather than sitting in the chamber correctly. If you reload your own ammo, there won't be a huge price difference between the two of them.
Jim