It is usually said during one-up-manship contest.
Somewhat of a backwards "you win",but you really are the loser.
This is a very old saying...said as early as the 1800's.
Rick: Oh yeah, well I have a hangnail!
Rhonda: Yeah , and my knee hurts too.
Rick: Well, I guess "your ass is the blackest."