@DavidCarlisle The problem is not comparison in the kernel (I already use
\str_if_eq:nnTF
for that). The problem are packages that dissect
\@filelist
(with code similar to
this) and use that to compare with
\@clsextension
. I have to make sure it gets catcode 11 in
\@filelist