Six of one and half a dozen of the other means you have two portions the same - just referred to by different names.
So it means you either have two equal portions, or the portion you are comparing with someone else's portion is equal - therefore you have one portion equal to someone else's portion