Earlier quoted context omitted.
As a black IT professional, I tend to leave the demographic information blank on applications because I want to avoid the racial implications of my application. I don't know if I'll be dismissed because I'm black and I don't want to be an affirmative action hire either. I made it to the 3rd round of interviews with Google back in 2012. Maybe if I had told them I was black, I would have gotten the job.
If including your race gives you a leg up, then I think you should do it. I saw a whole lot of casual racism when I was in college, and if that was indicative of the experience of others then you don't owe the rest of us shit.
In other fields, hiring can probably be done by ways that try to heavily reduce bias, and get similar increases in diversity without, from what I can see, the negatives of quotas. Some orchestras for instance have used "blind auditions" (https://en.wikipedia.org/wiki/Blind_audition) for quite some time, with a noticeable increase in diversity as a result. I see in the Wiki that some tech companies are experimenting with this approach. I'd strongly prefer this sort of system over what Google has (if the details described in the lawsuit end up being true).