Why this matters
The production reason.
Links and buttons have different jobs. Links navigate; buttons change state or submit actions.
Using the right element improves keyboard behavior, screen reader expectations, and browser defaults.
This also makes automated tests easier because the role matches the user intent.
<button type="button" aria-expanded={open} onClick={toggleMenu}>
Toggle filters
</button>
<a href="/pricing">
View pricing
</a>