At every turn, Spock and Data have exhibited emotions: they have made a long series of value judgments. They decided that being an officer is important, that it is crucial to perform certain tasks, that the goal of the Federation is a noble one, that human life is precious, etc. So it is an illusion that you can have an officer devoid of emotions.