In Estonia, France and Finland, schools are generally allowed to use admissions criteria …

„In Estonia, France and Finland, schools are generally allowed to use admissions criteria. For example, in Finland, schools with certain subject specialisations (but still following the same national curriculum) can set admissions criteria to assess students’ disposition or aptitude for certain subjects.“
EU-Kommission (Hrsg.), Equity in school education in Europe (2020), S. 103.