Yes check up with your doctor re ED.
I am not sure about getting rid of urges and fantasies. Not sure it’s even possible.
Honestly fantasies often just fantasies and having fantasies and it doesn’t necessarily mean you want relationship with men. Maybe you do maybe you don’t.
Girl being amazing doesn’t necessarily means you have future with her either. Ton of amazing people might not be your dream come true. Talk to a therapist about your sexuality etc