Or maybe the reason things didn't work out with Jesse is because Wally was gay and didn't realize it -- just as Alex Danvers's relationships with men never worked out because she was lesbian and didn't realize it.
I'm a little confused. Was it implied that Wally was gay? I missed the second half of "Legends".