That's like saying you won't visit the US because of racism. I don't know what you think caste is, but just like racism, it has been illegal for a long time. And just like racism it is still prevalent, but it's probably the worst possible reason to avoid India
There's also the ever present risk of a nuclear war with Pakistan or China.
Terrorism is another significant concern.