When it’s an inductor! Treat every via in your PCB as if it has about 1nH of inductance. Using multiple vias in parallel will reduce parasitic inductance and can cut down on unwanted oscillation.