We do not care much about the casing of command IDs in our constraint, so it makes no difference for use if it is "SET" or "set".
Commands are verified by checking their IDs and optionally arguments. Passing a command instance is only a shortcut to set the expected ID and arguments, commands are never compared for identity but always for equivalence.