Your answer works when you are observing the person(s) from outside, referring to a third person (A and B are both conscious, so it doesn't matter which one is which). However, it doesn't answer when one of the subjects is "I", because I and everyone else is clearly different (hence the title of Benj Hellie's paper I linked above: Against Egalitarianism):
> The ‘god’s eye’ point of view taken in setting up the egalitarian metaphysics does not correspond to my ‘embedded’ point of view ‘from here’, staring out at a certain computer screen. The god’s eye mode of presentation of the Hellie-subject and the embedded mode of presentation of myself are different: as different as the manifest and scientific modes of presentation of water—indeed, perhaps even more so: that is the core of the Humean worry. So it is not a priori that any of those subjects is exactly the same thing as me. And if not, if I am told that it is this one that is me, I want to know why that is.