Setting state value to the same value it already has

Does OpenGL ignore state change (in order to get better performance) when setting a state value to the same value it already has?

Unspecified. In general, anything which would have no observable side-effects (other than performance) is unspecified.