A situation involving gaining something one would normally enjoy or benefit from, were it not gained by sacrificing some prerequisite to enjoying or benefiting from it. Also known as "The Treat Yo Self of the Magi."
He made a devil's bargain when he sold all of his teeth so he could afford a toothpaste advertised as "Our most advanced whitening formula yet!"