On *A flights, the flight operator matters, the program you are crediting to matters and the paid fare class may matter
The ticket stock may matter depending on the program you are crediting (such as crediting to UA MP)
Codeshare doe not matter (just flight operator)
It is very difficult to credit a sequence of UA ticketed flights to different program unless there is significant time between flights (days) SO optimizing individual segments may not be possible
Wheretocredit is a reasonable reliable source
Without understanding your particular existing accounts and planned use of those programs, not really reasonable to make any speculation.
Scattering earnings to too many programs can result on orphan or expired miles.