Technically is the same because chocolate releases endorphins (I hope I spelt that right), and endorphins are the chemical that makes you feel happiness (I think, I don't biology)
As somebody who has lived on both sides of the spectrum (kind of) I can safely assure you that money can buy short bursts of joy, but not necassarily happiness. True happiness depends more on the people around you.
But yes chocolate does release that chemical.