Sit down and make a list of everything about yourself that you think is valuable and everything that is important to you. Now examine your list. Is your genitals on that list? Probably not. It is probably things like friendship and love, working hard, helping others, being funny or smart, etc. In the grand scheme of things our genitals, and even what we do with them, are relatively minor distinctions compared to the totality of who and what we are. They do not define our oppositeness or sameness. Two men can be very different while some men and women can be much the same.
And of course opposites attracting is only the most basic of rules. Opposites attracting is partly what guides atoms in attracting to one another, but that isn't a simple equation. It is a complex dance of competing influences which somehow miraculously allows for the formation of everything in existence, including you.
We (humanity) are a complex dance as well, not defined by simple patterns, and the magnificence of that complexity is the formation of all sorts of wonderful and amazing people and relationships.
Love is love.