Compté basically is Gruyère: same recipe, same process, same taste profile, just slightly different terroir.
(https://www.thephcheese.com/gruyere-and-comte-two-of-a-kind)
(https://www.thephcheese.com/gruyere-and-comte-two-of-a-kind)
[0]: https://www.sac-cas.ch/fr/cabanes-et-courses/portail-des-cou...
Where I am, comte is usually wider than gruyere. If this generally holds, that could be what it uses to distinguish them, and actually I showed it a cut piece so maybe that's why it thought gruyere.
With more time / motivation, it would be interesting to do a study looking at whether size and orientation can change the predicted label. Like if I cut cheddar into a wedge would it think its brie?