This question contains spoilers.
When reading the question How was Harry supposed to defeat Voldemort in Dumbledore's original plan?, I thought that the OP had erred when saying (emphasis mine):
[Dumbledore] believed that if he planned his death with Snape, the Elder Wand wouldn't recognize Snape as its new master... the Elder Wand would thus have no master and its true power would be lost forever.
I remembered that Dumbledore wanted the wand to pass its allegiance to Snape, and that was part of his plan. I looked it up and found two relevant quotes.
The first is between Dumbledore (in Harry's mind), and Harry, and seems to support Dumbledore wanting Snape to have the allegiance of the wand:
“If you planned your death with Snape, you meant him to end up with the Elder Wand, didn’t you?”
“I admit that was my intention,” said Dumbledore, “but it did not work as I had intended, did it?”
The next is between Harry and Voldemort, and seems to support Dumbledore intending for the wand to pass to no one:
“Aren’t you listening? Snape never beat Dumbledore! Dumbledore’s death was planned between them! Dumbledore intended to die undefeated, the wand’s last true master! If all had gone as planned, the wand’s power would have died with him, because it had never been won from him!”
There seemingly is a contradiction here: Dumbledore said that he intended for the wand to pass to Snape, but then Harry contradicts that by saying that he intended for the “wand's power to die with him”.
Personally, I tend to submit to the view that Dumbledore wanted the wand's allegiance to pass to Snape, which is why he planned his death to be at Snape's hands. Additionally when Harry is talking with Voldemort, he is almost gloating, and it's possible that he isn't being 100 percent honest, though I can't see a reason for him to not tell the truth.
What did Dumbledore actually intend to happen to the Elder Wand?
Note: I saw the question What was Dumbledore's plan for the Elder Wand? Why didn't he bequeath it to someone (Harry, Snape...) for safekeeping? which makes this seemingly a duplicate, but neither the question nor any of the answers (including the accepted answer) talk about this seeming contradiction, so I view this as a related, but separate question.