Comparing Hammett to those two is like comparing ....
hot dogs to oranges .... If you want to compare the Maltese Falcon, The Glass Key, The Thin Man, or Red Harvest to anything, set them against Chandler's The Big Sleep, The Long Goodbye, and Farewell My Lovely. It is somewhat ironic that Bogart played the protagonist in the best of both authors, Sam Spade in The Maltese Falcon and Philip Marlowe in the Big Sleep. Trying to pit Sam Spade against John Donne is an untenable reach. And you'll find that Raymond Chandler's writing has more polish than Hammett's.
I've listened to a lot of McBain's stories on cd .....
and while he is enjoyable, he's not in the same class as Chandler. But hardly anybody is. Chandler admired Hammett, and he followed his precepts. However, Hammett couldn't write dialog as well as Chandler. And Chandler's similes, which have become known as Chandlerisms, standout like a tarantuala on a piece of angel food, to borrow from Chandler.
Don't get me wrong, I love Hammett, especially The Maltese Falcon. I have probably seen the movie twenty times. Even the characters names are classic: Bridgette O'Shaugnessy, Joel Cairo, Gutman, the Gunsel (Elisha Cook Jr just passed away a short time ago). In fact I think Bogart and Mary Astor were better than Bogart and Bacall in The Big Sleep.
Get both on DVD and watch them as a double feature. Life doesn't get any better.