The nature of giant clumps in high-z discs: a deep-learning comparison of simulations and observations