Issue #23757:  Only call the concrete list API for exact lists.
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 7e3121a..cabbaf5 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1636,7 +1636,7 @@
         Py_INCREF(v);
         return v;
     }
-    if (PyList_Check(v))
+    if (PyList_CheckExact(v))
         return PyList_AsTuple(v);
 
     /* Get iterator. */