Tamiyo’s ability affects sacrifices, but not any other ways permanents can leave the battlefield. It won’t stop a creature from dying due to lethal damage or having 0 toughness, and it won’t stop a permanent from being put into its owner’s graveyard due to the “legend rule.” None of these are sacrifices; they’re the result of game rules.

Artwork
Loading artwork…
Tamiyo, Collector of Tales
The List · #WAR-220 · EN
Nonfoil—Foil—
Card rules
Spells and abilities your opponents control can't cause you to discard cards or sacrifice permanents.
+1: Choose a nonland card name, then reveal the top four cards of your library. Put all cards with the chosen name from among them into your hand and the rest into your graveyard.
−3: Return target card from your graveyard to your hand.
Loyalty 5
Rare · Illustrated by Chase Stone
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander 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
If a spell or ability an opponent controls states that something happens unless you sacrifice a permanent (as Mogis, God of Slaughter does) or discard a card (as Painful Quandary does), you can’t choose to sacrifice or discard. On the other hand, if a spell or ability an opponent controls instructs you to sacrifice a permanent unless you perform an action (as Killing Wave does) or discard a card unless you perform an action, you can choose whether or not to perform the action. If you don’t perform the action, nothing happens, since the spell or ability can’t cause you to sacrifice any permanents or discard cards.
If a spell or ability your opponent controls reduces your maximum hand size, Tamiyo’s first ability won’t stop you from discarding cards when the game rules cause you to discard during your cleanup step.
As a spell or ability an opponent controls resolves, if it would force you to sacrifice a permanent or discard a card, you just don’t. That part of the effect does nothing. If that spell or ability gives you the option to sacrifice a permanent or to discard a card, you can’t take that option.
If Tamiyo has 3 loyalty, you can’t activate her last ability to return her to your hand. She won’t be in your graveyard while you’re choosing targets for the ability.