Better Generalization with Semantic IDs: A case study in Ranking for Recommendations