An expression used to compare one person's problems to someone else's.
To make the listener realize he is lucky compared to others.
Your life's a shithole? Well your shithole's a puddle compared to the people starving in Africa every day while you sit at home and get beat by your husband. We both know who has things worse.