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.