apt sometimes has odd behavior when resolving packages, choosing packages that one wouldn’t expect if presented with multiple choices that can satisfy a dependency.
This has not been filed as a bug in Ubuntu, but has been filed as a bug in Debian. See the bug report here.
Consider double-checking the list of packages that will be installed when installing new software. This behavior has resulted in two bugs in Lubuntu:
- KWallet and KWalletManager are being installed by default instead of gnome-keyring: Bug link
- Alacritty is being installed alongside QTerminal: Bug link
Noticed by @arraybolt3, thanks Aaron.