YOLO on 10k classes

Hello there! I want to train a YOLO model that detects and recognizes trading cards. However, there are more than 10k different cards.

Is YOLO complex enough to recognizes more than 10k classes (e.g. if I take the largest YOLO model)? Or is it better to first make a card detection then do the recognition with another algorithm like Siamese?

Thanks!

Steven