Either will do

The side-by-side wiring also has a name.

It's called an OR gate. The light comes on if switch A or switch B is on. Either one is enough. Both at once works too.