It happened here, but not intentionally - what happened was twofold, actually, kind of funny.
At one point a few years ago, I had at the time two cockatiels - a male and female, breeding pair, the female was on eggs. The male was called Lucky, the female, Starr.
While Starr was still on her eggs, taking turns with Lucky sitting on them, she was on my mom's shoulder and my mom didn't notice, opened the door, and she flew out. I was LIVID that she neglected to notice her, but it was an honest accident. Starr was never recovered, unfortunately, even though I had done everything.
Lucky continued to sit on the eggs for a week by himself until he gave up. After the loss of his mate, he was extremely depressed - so we decided to add a second bird again, this time a male. We called him "Bo," and the pair quickly bonded and became best friends.
However, Lucky could talk very well - and often said his own name on a daily basis. "Bo" picked up every single word Lucky could speak, including "Lucky." If I called to Lucky, they both answered. Then tragically, Lucky fell seriously ill and died. "Bo" continued to say Lucky all of the time, and would not respond to "Bo," but would only answer to "Lucky." Thus, he became "Lucky" himself. It hurt to have to accept this was his name in his eyes, but I didn't want to confuse him, he knows himself as being Lucky.
Then I got my Pomeranian, who I named "Beau." Same sound, different spelling, and it worked out since the second Lucky rejected that name anyway!