Conditional import and lexical scope

The behavior makes sense if you look at the implementation:
https://github.com/elixir-lang/elixir/blob/74bfab8ee271e53d24cb0012b5db1e2a931e0470/lib/elixir/lib/kernel.ex#L3791-L3803

The right-hand expression in && winds up inside a case statement, so the import does not leak out.