In Russian, there is a phrase
Love sometimes plays tricks - you may fall in love with a goat
(Любовь зла, полюбишь и козла). Goat means a bad person (stupid, abusive).
It is used, when an otherwise intelligent person falls in love with an obviously bad partner (e. g. a smart woman voluntarily stays in relationship with a man, who beats her, or a successful man stays with a woman, who humiliates him).
I'm looking for English equivalents, ideally rhyming.