Fix #13208: only check elements for delegation matches