Refuse
No single version satisfies both. The install stops with an error.
pip · Cargo within one compatible range · npm peer dependencies
Duplicate
A gets D 1.x, B gets D 2.x. Both copies ship and both need patching.
npm and pnpm regular dependencies · Cargo and Go across majors
Choose
One version wins and one parent runs a version it never declared.
Maven: nearest declaration wins
