Trump decided to use his position as the presumptive presidential nominee of a major political party to interfere in in a civil suit related to his personal business interests. That alone makes me wonder if he would abuse the power of his office should we win the election. That he did so by invoking the judge's race made him look desperate and unable to control his own temper.
I'm sure you're right that defendants in trials say stupid shit about judges, and I'm sure some of those comments are overtly racist. If the races in this situation were reversed, I still wouldn't vote for the hot-headed loudmouth.