I'm a bi man, but before I finally came out, I tried to suppress and deny my feelings towards men.
That inner hatred drove me into a spiral of depression, which scarred me for life and nearly drove me to suicide.
If your religion forbids you from being gay, or you'd be disowned, or executed, or something like that, you can always be celibate (or, if you have feelings for women too, you can only act on those). But you can't change your *feelings*, and DON'T TRY TO DO SO! It will only hurt you in the long run.
Even if you're a hardcore religious antigay person, in which case I know I won't change your mind about morality, think of it this way: there's nothing wrong with having FEELINGS, it's just God testing you or something like that. If you don't act on them, it just proves you're a MORE moral person for having them, because you can "resist temptation" or whatever.
(Obviously, I say love is a beautiful thing irrespective of gender. I don't agree with that negative view, but celibacy is better than self-hatred, depression, and suicide.)