It seems like in your case no matter who issues the ticket, Lufthansa or United, you will be earning PQD and RDM based off the fare. As long as the flight is operated by United you earn RDM and PQD based off fare, so in your case buying the more expensive flight yields more PQD and more RDM.