How to choose solid and surface in loft?

Use a Boolean node.