The isolation "REPEATABLE READ" is the same as "SERIALIZABLE" in Oceanbase. You can refer to the official Oceanbase document.
In your test, the isolation level is SERIALIZABLE in Oceanbase. So the result is different with MySQL.