I suspect you're trolling, but I'll give an answer anyway.
The difference is in the power differential. With pedophilia, the relationship is between an adult and a child. The child hasn't the maturity to understand the relationship, to make a decision for him or herself about whether or not the relationship is right or wrong, and to meaningfully disagree with the adult. Because all the power in the relationship is in one side, the relationship cannot be balanced and healthy. When the child is prepubescent, he or she would not have the same physical attraction as an adult, and therefore cannot participate in the relationship at the same level. Pedophilia is equally wrong when the adult is male or female, or the child is male or female.
Homosexuality, on the other hand, is a relationship between two consenting adults who happen to be the same sex. They are both presumed to be mature enough to understand what a sexual relationship means, and to consent to be in one. Although one individual may have a somewhat more forceful personality than the other, both have the ability to influence the relationship, and to leave it if they choose.
So, when a male hockey coach has sex with the 9 year old boys on his team, that is reprehensible because it is pedophilia, not because it is homosexual.
The reason pedophilia is considered reprehensible is because it tends to leave the children emotionally damaged, unable to form proper relationships, and generally messed up for life.
There is one respect where they are similar. Most people are sexually attracted to people of the opposite sex who are similar to them. Mature adults are very different from children, so an adult who is sexually attracted to a child is very unusual, like someone who is sexually attracted to a dog or a toaster. Some research shows that about 1% of the population is primarily attracted to children, and about 10% is attracted to the same sex.
In summary: being attracted to the same sex is somewhat unusual (~10%), whereas being attracted to children is very unusual (~1%). Engaging in a sexual relationship with an adult of the same sex is no worse than (and no better than) a mature relationship between equals of the opposite sex. Engaging in a sexual relationship with a child is a highly uneven relationship which results in severe psychological damage to the child.
That's how they are different.