This is just showing that Obito has a strong willpower, and is willing to do whatever to achieve what he wants. Kabuto himself went through painful experiments to achieve his current form, that isn't really relevant. Kishi actually goes as far to compare and parallel Obito and Izanami victim, Kabuto and how they were both Lost in similar ways
And they pretty much have the same backstory
In the third war, they were recruited by a shadowy predator, who took them in, and exploited their insecurities/fears, and eventually when that figure died, they took up their identity,Orochimaru and Madara of course, but before the end, they decided to save Naruto/Sasuke
It gets even worse, when you realize Izanami was specifically made to counter Izanagi spam
And who is the Uchiha member in the series who we see use Izanagi the most/first, going as far as to wipe out his clan for the spare eyes, so he could specifically use it,lol?
Not exaggerating to say that Obito is a walking Izanami victim, it was specifically made for people like him, arguably people who had less extreme version of his traits and abuse of Izanagi,lol.