create temp table import_data (...);
copy import_data from '/path/to/file' (format csv, ...);
insert into tablename (...) select .. from import_data where not exists (select from tablename where tablename.phone = import_data.phone) on conflict do nothing;