Material Index:
This socket just outputs index pass set by user, just like simple Value node.
At first I thought it can play a role with material override, to see passes of real materials. Unfortunately, it doesn't work that way, as it also overrides all passes.
So, what is usecase for it?