The main difference is the cooking process. Corned beef is meat, usually brisket, that's been cured. Then it's cooked without smoke either in a pot on the stove or in the oven or in a crock pot or instant pot. Pastrami is meat that has been cured that is cooked on a smoker.