I would say that homophobia are much worse. People can't help being racist, it's part of the human condition, the only true non-racist are people who suffer from either a birth defect or are brain damaged. On the other hand homophobia is fully a choice, there's nothing in our biology which should make us hate or fear homosexuals.
False!
We "Other" anyone beyond ourselves for bad or for ill if things go unchecked, it's simply the nature of pride in the human condition to do that.
This is precisely why the actions are important and silly hypotheticals like this are ultimately pointless.