Refactor: group logic for dynamic value "the greatest [quality] among [filtered card in zone]"
Those cards were excluded in #13666, that filtered only on permanents.
Currently, there are only 7 candidates (scryfall search), with two of them [[Ambitious Dragonborn]] and [[Skanos Dragonheart]] caring for both cards and permanents.
Ambitious Dragonborn - (Gatherer) (Scryfall) (EDHREC)
{3}{G} Creature — Dragon Barbarian 0/0 This creature enters with X +1/+1 counters on it, where X is the greatest power among creatures you control and creature cards in your graveyard.
Skanos Dragonheart - (Gatherer) (Scryfall) (EDHREC)
{4}{G} Legendary Creature — Dragon Ranger 4/4 Whenever Skanos Dragonheart attacks, it gets +X/+X until end of turn, where X is the greatest power among other Dragons you control and Dragon cards in your graveyard. Choose a Background (You can have a Background as a second commander.)
After thinking about it more, I think I'll go with a GreatestAmongCardsValue similar to GreatestAmongPermanentsValue, and for the two cards or permanent, a card-local MaximumDynamicValue would combine two values together.