Form of the Dinosaur’s last ability isn’t optional. You have to pick a fight with an opponent’s creature if any are legal targets. If that creature leaves the battlefield after it becomes the target of Form of the Dinosaur’s ability but before it resolves, you won’t be dealt damage.