You don't choose whether to sacrifice an artifact or which artifact you're sacrificing until the ability resolves. Once you decide to sacrifice an artifact (or not), it's too late for players to respond.

Artwork
Loading artwork…
Kuldotha Flamefiend
Jumpstart 2022 · #565 · EN
Nonfoil—Foil—
Card rules
When this creature enters, you may sacrifice an artifact. If you do, this creature deals 4 damage divided as you choose among any number of targets.
4/4
Uncommon · Illustrated by Raymond Swanland
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
PreDH Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer 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
If some of the targets become illegal for Kuldotha Flamefiend's ability, the original division of damage still applies, but the damage that would have been dealt to illegal targets isn't dealt at all. If all of the targets become illegal, you can't sacrifice an artifact.
You may choose zero targets. If you do, Kuldotha Flamefiend deals no damage, but you may sacrifice an artifact.
You divide the damage as Kuldotha Flamefiend's triggered ability is put onto the stack, not as it resolves. Each target must be assigned at least 1 damage. You can't choose more than 4 targets and assign 0 damage to a target.