Even if you take option 2, you'll still get miles for all eligible segments, just enter your UA MP account rather than an M&M account.
But don't limit yourself to UA.com's half-baked search;
search on Google Flights and choose the book with United link. This way you get United's policies for changes/future travel credit/residual value/etc rather than LH's.