So you're on the B-list, you know it and they're not trying to hide that it was a later invitation. They don't feel as close to you as they do to other people, and you have to decide what to do about that fact - they're not wrong to feel that way.
It doesn't mean that you're awful and they secretly want nothing to do with you. You could well have been in the list of people they know but decided not to invite. Maybe they don't feel really close to you, and think of you as one of their nearest friends, but they like you and enjoy your company. Do you see them as really close friends, and this is a really unexpected slight to find that you're not one of theirs? That would hurt, to realise you aren't really close when you thought you were. But if you aren't really close to them, but on a wider list, maybe you can feel wanted in the sense that of all the wider circle, they've now been able to include people like you.
I think you need to just make the decision on whether you'd enjoy the party, enjoy the other people there, etc., and decide how you feel about the friendship separately. If you really felt close to them and weren't invited, that must have hurt all along, and getting a later invitation would be difficult. Did you already feel upset that you weren't involved in a close friend's party? Or were you not that close, in which case, be pleased that you are now someone they choose to include. If you never really wanted to go anyway, then make your excuses and decline - you don't need this as a reason.