To be fair, it puts an increased burden on both parties. Any situation in which people cannot even socialize comfortably is not ideal for productive work.
It's obvious that there is sexual tension between individuals at work sometimes. Given that relationships at work are fairly taboo even assuming both parties are interested, there are not obvious pathways to resolve this without risking your career. Anytime I've ever had any interest in a coworker, the main thought I've had in my mind has usually been to try not to even THINK about getting involved. But, work is just work. Gotta get paid. if I were to to prioritize my actions on my terminal values, what I really want in life, notwithstanding the risk described above, I would try to pursue these relationships.