Counter target spell. If you control a blue creature, draw a card, then discard a card.
Whether you control a blue creature is checked only when Statute of Denial resolves. If you do, drawing and discarding a card is mandatory. You can’t choose to not do it.