How to make a node reference field that can also behave as a text field if no reference exists
instead of node references you could use term references and then use the Autocomplete Deluxe module to have the user select existing terms or add new terms.

Actually, they there is support for references with Autocomplete Deluxe for References.