Keep the geometry
A vector circle can be redrawn at a different size from its geometric description. On a screen, the browser still turns that description into pixels for display. A raster circle starts with a fixed pixel grid; enlarging it asks the display process to spread or estimate the available image information.
Choose for the material
Simple diagrams and symbols often suit vectors, while photographs commonly suit raster formats. Neither category guarantees a small file or a clear image. Complex paths can be expensive, and a vector file can include raster content. Legibility also depends on line weight, contrast and the size at which a drawing is actually viewed.
Consider the smallest use
Hypothetical example: a route symbol looks clear on a large poster but loses a narrow gap when displayed beside a short link. Saving it as a vector preserves its geometry, yet does not preserve the visibility of that gap. Reviewing the symbol at its smallest intended size answers a different question from checking whether it can scale without pixelation.
Further reading: Adobe: vector files.