You don’t choose a target for Selfcraft Mechan’s ability at the time it triggers. Rather, a second “reflexive” ability triggers when you sacrifice an artifact this way. You choose a target for that ability as it goes on the stack. Each player may respond to this triggered ability as normal. Then if the target creature is an illegal target as the reflexive trigger tries to resolve, it won’t resolve and you won’t draw a card.

Artwork
Loading artwork…
Selfcraft Mechan
Edge of Eternities · #74 · EN
Nonfoil—Foil—
Card rules
When this creature enters, you may sacrifice an artifact. When you do, put a +1/+1 counter on target creature and draw a card.
3/4
Sometimes the best parts are already in use.
Common · Illustrated by Milivoj Ćeran
Format legality
Alchemy Legal
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Future Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Penny Legal
Pioneer Legal
Standard Legal
Standard Brawl Legal
Timeless Legal
Vintage Legal
Old School Not Legal
PreDH Not Legal
Premodern Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions