Difference between rendering with CUDA or Optix?

I’m just curious what is the difference between rendering with CUDA or Optix?

I got a new RTX card and was under the impression that it would render quicker in Optix, but on a test render in Cycles, CUDA was about 5-10% faster.