Nematic topological semimetal and insulator in magic-angle bilayer graphene at charge neutrality