Which sentence contains an example of a metaphor?

A. The bird, as dark as the night sky behind him, flew to his perch on the tree.
B. The trees were her shield from the predators of the forest.
C. Charlie tiptoed into the room as quietly as a whisper.
D. The bare trees were like antlers sticking up from behind the roof of the house.