Improve performance of Enum.{Try}Parse (#21214)