ol.a li:not(:has(.b:has(a)))

  1. Goofy
  2. Mickey
  3. Pluto
  1. Goofy
  2. xxMickey
  3. yyPluto
  4. zzyyPluto
  5. Pluto