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.