equal By Namespaced Key If Exist Else By Material
Compares by namespaced key when both stacks have one, otherwise falls back to equalByMaterial. Lets custom items and vanilla items be matched uniformly.