Actual studies of plea bargaining have shown that there are racial biases in what prosecutors offer in deals between black and white defendants [0]. It seems unlikely that the same bias would not also be reflected in decisions to charge in the first place.
[0] https://www.bja.gov/Publications/PleaBargainingResearchSumma...: "Studies that assess the effects of race find that blacks are less likely to receive a reduced charge compared with whites (Farnworth and Teske, 1995; Johnson, 2003; Kellough and Wortley, 2002; Ulmer and Bradley, 2006). Additionally, one study found that blacks are also less likely to receive the benefits of shorter or reduced sentences as a result of the exercise of prosecutorial discretion during plea bargaining (Johnson, 2003)."