Depends what is meant by 'love'.
She can't love the poor guy and marry the rich one. The fact that she loves the poor one probably precludes her ever marrying the rich one now, unless she's a really good actress and properly shallow.
You should only allow yourself to fall in love with rich ones. But of course it doesn't work like that. You fall in love regardless of money.
I couldn't marry for money alone. I'd feel so ashamed, and so wrong.
But I know women who do. And then they just enjoy the stability and fxxk the builder, for example.
I wouldn't suggest that as a plan, although TBH these women have no worries, and great holidays, cars, etc. And I think your concern is that marrying for love with no money might lead anyhow to the stresses of poverty ruining the relationship, however good.
Only answer is marrying for love, and making sure you both have your heads screwed on about the money.