I think IF games tend to be more puzzle games with some story segments. Gamebooks are much closer, but still often have proto-RPG mechanics. (I remember tracking inventory and HP for the ones I played/read through). VNs are much closer to pure story, with some tracking of earlier decision flags for callbacks later in the story.