This is a perfect chance to teach them about variation. It's important to understand that your test scores will vary based on how you're feeling on that particular dayday; a 93 is only about 4% lower than a 97 and it's unlikely the test is really that sensitive. There may even be the possibility of retesting if the lower-scoring twin doesn't think they did their best.
If, in the end, they aren't able to be in this more advanced class together, it's time to understand that everyone has their own unique skill sets or aptitudes. Let them know that it's likely their twin will feel this way about something else at some point in the future too. It's natural to be competitive, but expect to lose at times.
Honestly, this could be a good opportunity to branch out, study with other people, and get used to bringbeing more independent. Just be supportive and don't make them feel bad for being jealous about this. No one likes to lose and competition can be particularly fierce between twins. It will probably blow over.