The creature an opponent controls isn’t targeted, so it’s chosen as the triggered ability resolves. A creature with hexproof could be chosen, as could a creature with protection from red, although, in the latter case, the damage would be prevented.

Artwork
Loading artwork…
Cinderheart Giant
Kaldheim · #126 · EN
Nonfoil—Foil—
Card rules
Trample
When this creature dies, it deals 7 damage to a creature an opponent controls chosen at random.
7/6
What fire giants lack in arcane prowess, they make up for with reckless, explosive rage.
Common · Illustrated by Viktor Titov
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions