pmb.parse: Preferentially use a provider whose origin is installed
Improve package picking logic by picking a package whose origin package is being installed. This should reduce conflicts when eg there are multiple versions of Mesa to pick from.
Related to (but does not fix) #1867