Son Is excluded, Buffering

My 7-year-old son got intentionally excluded from playing with neighbor friends and I saw it happen and it hurts so much. He immediately wanted to come home and play video games, but I don’t want him creating a habit buffering when sad things like this happen. We talked about how the kids must have hurt hearts if they want to hurt him like they did and there is nothing wrong with my son, but now he doesn’t want to talk about it anymore and he’s watching a movie with his younger siblings. I’m also trying to process the emotion since it hurts me also. I was buffering with social media, but now I’m here trying to remember that this negative pain is part of the human experience. Any advice of where to take this next? I’m tempted to go get ice cream, but I don’t want to reinforce sweets as the answer to pain.