A nephew is a male relation, so the girl cannot possibly be Mary's nephew.
Which of the following sentences is nonsensical?
[A] "the boy next to mary in the photo is her nephew"
[B] "the girl next to mary in the photo is her nephew"