Blackrazor wins ... probably
Ring
If you die while wearing the ring, your soul enters it
Blackrazor
If this necrotic damage reduces you to 0 hit points, Blackrazor devours your soul.
Since being reduced to 0 hit points doesn't usually kill you, then Blackrazor would devour your soul.
PHB, p. 197:
When you drop to 0 hit points, you either die outright or fall Unconscious, as explained in the following sections.
Massive damage can kill you instantly. When damage reduces you to 0 hit points and there is damage remaining, you die if the remaining damage equals or exceeds your hit point maximum.
If damage reduces you to 0 hit points and fails to kill you, you fall Unconscious.
Instant Death
It is unlikely, but technically possible that the necrotic damage from Blackrazor could instantly kill a character. I can think of a few conditions that might make this more likely:
- Low level character might have fewer than 10 maximum hit points
- A character might gain a vulnerability to necrotic damage
- A character may have had his/her hit point maximum reduced by life draining attacks from a wraith or other source
In any case, the key part of the rules regarding dropping to 0 hit points is:
When damage reduces you to 0 hit points and there is damage remaining, you die if...
So, do you drop to 0 hit points, and then die? Does Blackrazor swallow your soul?
Your DM will have to resolve this question. To the best of my knowledge, this is not explicitly outlined in the rules, nor has it been officially answered.
For guidance, your DM might consider this answer found on page 13 or the Sage Advice compendium:
If the damage from disintegrate reduces a half-orc to
0 hit points, can Relentless Endurance prevent the orc
from turning to ash?
If disintegrate reduces you to 0 hit
points, you’re killed outright, as you turn to dust. If you’re a
half-orc, Relentless Endurance can’t save you.
The Relentless Endurance racial feature, PHB p. 41:
When you are reduced to 0 hit points but not killed outright, you can drop to 1 hit point instead.
It is possible that this Sage Advice ruling indicates that even though Relentless Endurance would put you back to 1 HP, the effect of Disintegrate, triggered by being reduced to 0 hit points, is still resolved.
That would imply that, when a character is reduced to 0 hit points, you resolve all of the effects that would happen as a result. In our case, one of those is instant death, and one is from Blackrazor. After resolving both conditions, the character is dead, and his/her soul has been swallowed by Blackrazor.
The effect of the ring cannot not be resolved until after the character is dead. At that point Blackrazor has already swallowed his/her soul.
But in the absence of explicit rules or an official answer, the decision ultimately rests with the DM.
Johnny can only do exactly what the description says he can do. Which is communicate telepathically with any creature wearing the ring or depart for the afterlife.
On your question about whether its an intelligent item: It is not quite the same as the 'sentient items' described in the DMG as it is the soul within the ring that is intelligent rather than the item itself, though many sentient items blur this line since their power often comes from a soul trapped within it.
It's the subtle difference between an existing magic item that just happens to contain a soul, and an item (typically unique) that either gained sentience by virtue of a powerful enchantment or gained it's actual power because it trapped a soul.
However, the question is moot (unless you have a situation that proves otherwise), since the soul in this case can't do anything other than what is described and doesn't have any other power over the wearer so there is no need to provide other stats etc.
Best Answer
It's not clear that the ring would even activate
The operative part of the Ring of Mind Shielding's description is:
However, the language used to describe the lich's abililty to reconstitute itself from its phylactery seems to carefully avoid the words "death", "die", or "kill", instead reserving these words for what happens when the lich is destroyed after the phylactery is destroyed. In the Monster Manual's description of the process:
And in the lich's stat block:
Note that the in addition to not mentioning death, the lich's Rejuvenation trait also makes no mention of raising the lich from the dead. So, RAW, it seems that a lich with a functioning phylactery does not die when its body is destroyed, which means the soul-trapping ability of the Ring of Mind Shielding never activates.
Even if the ring does activate, it can't free the lich's soul from the phylactery
The description of the process of becoming a lich is quite clear that the lich's soul is permanently housed within its phylactery, as shown by the following excerpts (emphasis added):
And in the next paragraph:
And importantly, the sole purpose of the phylactery is to make it as difficult as possible to access or liberate the lich's soul:
So, even if you as a DM ruled that the ring did activate upon the lich's discorporation (which is not an entirely unreasonable ruling), I would argue that it still can't pull the lich's soul out of its phylactery, since that is exactly what the phylactery is designed to prevent.
In summary: the ring can't trap the lich's soul because the lich's soul is already trapped in its phylactery.