I have noticed that these two countries get a lot of flak for racism because it is quite relevant and popular topic in news cycle here. People take it negatively but I feel like the fact that minorities have at least some voice is a lot better than other countries where this isn't a topic of discussion at all. Most of Europe is pretty racist, Argentina literally adopted Nazis, Indians are racist towards themselves etc.
My point isn't the these countries are better or worse but the fact that the topic of racism is so widely discussed in USA and UK is a merit to these countries. Also, most of the racism stems from alienation from outside world which is mostly rural USA. Compared to that, most of the countries in Europe and homogenous and there is a lot of racism there but it's so common that they are accepted as norm. Even look at Speed's China visit. They literally brought my bro a banana and also the Kpop stars were leaked to use the N word without any consequences. That just shows that those countries are not just racist but also it is so common that it isn't even an issue.
The only issue with USA and UK is that a lot of the "reforms" are just for the corporates to earn more money but other countries dont even have that