> there's not compiled machine code that does a jump
It's more of an implementation detail, but the Ruby VM actually does a jump if all the cases are "keyable"(typically integers, strings, symbols, etc). It does a hash lookup and jump to the returning address.
https://github.com/ruby/ruby/blob/92466e440d459cd21e89f8bfbe...