Short answer
10W-30 and 5W-30 share the same hot grade (30), so once the engine reaches operating temperature they protect very similarly. The difference is at startup: the 5W in 5W-30 flows more easily when cold than the 10W in 10W-30, which means quicker oil delivery on cold mornings.
If your manual specifies 5W-30, treat 5W-30 as the default and only use 10W-30 if the manual lists it as acceptable. In warm climates the practical gap is small; in cold climates it matters more, because slower cold-start flow delays protection when the engine is most vulnerable.
Why it depends on your manual and climate
The second number being identical is reassuring — at full operating temperature these two oils behave alike, so there is no thinning of the protective film once warmed up. That is why this is a check-your-manual question rather than a warning.
The first number is where the choice lives. A 5W oil reaches the top of the engine faster on a cold start than a 10W oil, and that early flow is when much of the wear margin is decided. In mild conditions the difference is minor. In genuinely cold weather, 5W-30 has a meaningful edge, which is why many manuals that allow both still prefer 5W-30 in low temperatures.
There is also the paperwork side: running a grade your manual does not list can complicate a warranty or emissions claim. If your manual sanctions 10W-30, it is a reasonable choice within the stated conditions. If it lists only 5W-30, stay with it — or ask a trusted mechanic about your engine, climate, and driving.