Would you invite kids that don’t invite your kids to their bday?

I’m trying to plan out my son’s birthday ahead of time. Last year we invited the whole class and it was an expensive party! This year, I’m not sure if we should invite the whole class as many of them don’t invite him to their birthdays? So, would you just keep it small and pick a very awesome venue and only invite the friends he actually plays with? There are a couple of venues that I need to reserve 6 months in advance so not sure what to do?

Edit: it’s not about them inviting my son or not. It is because several parents this year are handing out invites by screaming out the kids who are invited in front of kids who are not. I just find it so inconsiderate that’s why I want to reconsider inviting the whole class.