Honestly it’s not even close. The writing in TW3 is good and it’s sidequests are excellent, but as far as the ongoing themes of the central narrative it pales in comparison. It doesn’t really have any larger point to make, it doesn’t want you to ponder anything large or substantial. It’s the story of a man, his chosen one foster daughter, and an allegory for climate change. Torment wants to have a much loftier conversation in much more depth than anything TW3’s central narrative tries to do.
A closer modern competitor would be SOMA, which wants to get the player thinking about the nature of human consciousness, the connection between the mind and the body, and what it means to switch minds between containers and how a human being would handle that.