Actually, it will throw an error - on which the higher-level (libapt) tools above dpkg will abort, and going directly to dpkg with a --force-whatever is not quite as easy as clicking "yeah, just do it already". Not to mention that I have needed that twice in a decade, in rather obscure cases.
But yeah, containerizing the apps is probably a way forward, which sidesteps whole classes of issues.
But yeah, containerizing the apps is probably a way forward, which sidesteps whole classes of issues.