I haven’t been close enough to local Bristol politics to know much about the guy, but to claim ‘racism’ as the reason for losing an election these days displays ignorance and arrogance in equal measure.
Maybe people simply preferred the other candidate?