[ruby-core:121867] [Ruby Bug#21310] YJIT optimization causes incorrect is_a? method evaluation