The Dodgers didn’t hire Jackie Robinson because they wanted to end racism. They hired Jackie Robinson because they wanted to win baseball games.
Incidentally, Robinson was such a great athlete in a number of sports, some people think he should have been the first black player in the NBA. Basketball might have been his best sport. He starred at UCLA in basketball as well as the other sports. At 5'11 he was a tremedous ballhandler and could easily dunk. He played for a pro bb team (Los Angeles Red Devils) in the offseason during the late forties.