I assume you are asking if the two are in competition with one another. Yes, of course, but they are also in competition with everyone else who applies. If the pool is large then there will, potentially, be a lot of very similar applications.
It is likely, but not required that they get the same result. Both accepted, or both rejected is more likely than only one accepted. But there is more to admissions than numbers in a spreadsheet and one of the two might be preferred for some reason. Suppose the Fencing Team needs new members, say.
And in a situation in which interviews are used, one of the two could be judged more likely to succeed based on some intangibles of presentation or perceived enthusiasm.
My main point, however, is that, in a good system, everyone is treated as and individual but there is tremendous completion for too few spots.
Specifically with respect to the "desire" for diversity. Not everyone will even have such a desire (worldwide). In some places there are strict laws. But those laws still try to assure, in some way, that people are treated as individuals. And none of the characteristics you mention come near to the concerns of those laws.