Maybe there is a reason that he is unable to explain as to why he only gets aggressive around them as he is too young.
You can always try telling your child, that you understand that they must be upset or disappointed about the other kids or probably they make him feel that way.
You can try doing a role play at home with him during play time and name yourself and the other parent as the name of the kids he hits. See what is his response and ask him what should you do, how does he want you to play (as the other kid).
Avoid blaming the child always and making him feel bad about it, probably that is not working with him.
Next Steps
Try not lecturing the child instead adopt indirect ways like role plays, miniature play, or sand tray techniques to help the child create his own world during his play.
Health Tips
You can take a consultation with me and probably discuss further as to what all you have tried that has helped/not helped.