Op. If you undertake your parenting journey In such a reactionary and vindictive manner only your child will suffer.
firstly, it is her choice who she invites to her parties. Not yours. You decide the numbers, that’s it, you are the parent not the birthday girl it’s not your party. You talk to her, understand, not decide on her behalf without discussion, she is a person in her own right.
secondly as you said you don’t even know who was invited. Your child is not entitled to go to every girls party just because she’s a girl. What are you thinking with that? These children are allowed to have small parties and decide who attends based on friendships, not gender. Children can have close friends of both genders.
Thirdly If this Is whole class party and only your daughter left out then be a grown up and speak to the parent And understand why to enable you to support your child. It’s doubtful it is though. But be an adult. Parent; don’t give be vicious. It helps no one.
lastly as said, if you start excluding kids because they don’t invite her, and let’s be honest, there will be plenty of parties she’s not invited to. Then by the time she leaves primary, and likely much before, she will have no friends left.