If I give you a poison that tastes great... does that negate the fact that it will still kill you? Does dying from drinking poison sound like it will make you happy? even though you might have enjoyed momentarily the flavor upon tasting it?
Such it is with many sins. Momentary, fleeting, happiness at the cost of a lifetime of misery.
I'm of the opinion that the 10 Commandments aren't for God's benefit, but were given to us by God to increase our happiness and benefit us directly.