What really works is setting your numbers and explaining to your parents that it's a conscious choice, not a restriction. Like "we want 35 people, the ones who really matter to both of us, and that's final." No guilt, no justification every single time. Once they see you're serious and you've thought it through, most of them stop pushing. The other important thing: if distant cousins or coworkers really matter to your parents, that's on them to handle, not you. Don't let them guilt-trip you because some third cousin you never see feels left out.
Watch out for the trap where you say yes to a few "bonus" people and suddenly you're at 80. It really spirals fast once you start making exceptions. Better to say no from the start gently than to keep adding as you go.
Honestly, 30-40 is a very reasonable number. Small weddings are increasingly common even now in 2026, not just a covid thing. Lots of people have figured out it's better to have an actual great day with the people you love than to put on a show for the whole family. Good luck with your parents, but stick to your vision.