In my first language (Thai), there is a saying, (we even have a song for that!)
"Love the one who loves you, not the one whom you love."
In English, there is a similar and well-known phrasesong lyric:
"If you can't be with the one you love, love the one you're with"
Sometimes it's shorten to just "Love the one you're with".