Try List.Equals() instead. If that still doesn’t return the expected result then both categories are different objects on memory.
More details here: