You've raised an excellent question about the Elder Wand's allegiance. Here's why your assumption isn't accurate:
The Elder Wand's power transfers through conquest in a duel, not merely by killing the previous owner. Ownership must be won through magical defeat.
Snape wasn't fighting for wand ownership when he killed Dumbledore. He was executing Dumbledore's pre-arranged plan to ensure Voldemort's downfall and Harry's safety.
Dumbledore knew the wand's allegiance had already passed to Draco Malfoy, who disarmed him earlier. He needed Snape to kill him to maintain the appearance of Snape's loyalty to Voldemort, while the wand's true allegiance remained with Draco.
Harry became the true master by disarming Draco Malfoy in the final battle, winning the wand's allegiance.
Conclusion: Despite killing Dumbledore, Snape never became the Elder Wand's owner. Dumbledore's plan ensured Voldemort couldn't truly wield it, and Harry ultimately earned its loyalty.