No they aren’t the same thing.
Backhanded compliment = your makeup looks great,it covers up your bad skin flawlessly.
Sarcasm= [you are visibly struggling while carrying a heavy item]
friend: do you need help?
You: no, of course not, I enjoy risking breaking my back.