It depends on the the age of the heater. The new ones I see have a galvanized steel nipple with a plastic liner on the inside already installed. Flex connectors install directly to those with none of the problems you are having. Before that came along, a good plumber used a brass nipple straight out of the tank.