is used to suggest that
speculating about hypothetical circumstances that cannot change the facts is pointless. The saying is often a dismissive response to an unrealistic supposition.
similare to
if I had wheels, I'd be a wagon.
When it is futile to speculate about impossible situations, the saying “If my aunt had been a man, she’d have been my uncle” is appropriate.