Comparison and gratitude have an equally powerful effect on the joy we experience – just in opposite directions.