Is it faster to index into an array or use switch statement for lookups?

While working on a PR in Microsoft.Extensions.Logging I saw two variations of code and I wanted to check which one is faster. Not that it mattered in this piece of code, but every little counts and also, I like to explore random things. Assume you have some numbers (zero-based) that represent predefined strings. And you want to convert those numbers.