There is also the factor of memory vendor in the card.
All the RX 570s and 580s that I bought came with Hynix memory and BIOS modding was a bit of challenge and risk at first but it did produce good results.
The highest hash rate I was able to get from the best card was 31 MH/s which was also unstable at times.