Both of those are racist, one is just more racist than the other. Both of those kinds of stories fail to treat the experience of black characters seriously, one just does a worse job than the other.
Racism and tokenism, like so many other things, are sliding scales, not an on/off switch.