The first picture is a M-43 this is an aftermarket oil pump it is made of cast iron and is the right Oil Pump for 1955 to 1960 Ford car and truck 223 sixes but its add is incorrectly labeled as to all the years it fits. The second oil pump looks different because its an OEM Ford oil Pump and is made of Aluminum. I cant tell what the box part number is. If the pump has a C1AE part number stamped on it that would make it the wrong oil pump, but the adds label cant be right then, according to Melling it wouldn't be right for both the 1955 to 1960 223 engines as well as the 1961 to 1963 engines. Your friends 1958 Ford 223 though would use the exact same oil pump as yours.
Turns out I was wrong and there are Four different oil pumps made by Melling that cover all of the different sizes of the Ford OHV Six engines 215, 223, & 262. On the Vin code you can find the engine code if its the original engine this would be the first letter, a 223 six is an A code, see below picture of a 1956 Ford Vin / Warrentee Door Tag.
The first Oil Pump is the Melling M-25 fits the 1952 and 1953 215 Ford Six (First OHV six in this engine family) and the 1954 223 first year for the bigger 223 six also uses it this oil pump covers all the Ford car models and all 1951 to 1954 Ford truck models from F1, F2, F3, F4, & F100, F250, F350 & P350, for a 215 or 223 OHV six both these have an A for the engine code.
The second Oil Pump is the Melling M-43 this pump Fits all Ford 223 car and truck engines from 1955 to 1959, the 1960 223 Ford Trucks with a J engine code and the 1959 Edsel 223 with an A engine code, it also fits the 1960 Ford's and Edsel's with a V engine code.
The third Oi Pump is the Melling M-67 this pump fits all the Ford and Mercury 223 six car engines with a V engine code from 1961 to 1963. Also all 1961 to 1963 F100, F250, F350 Ford 223 six Trucks with a J engine code & 262 six Truck engines with a B code engine F250, F350, and the bigger F500, F600, etc. trucks too.
The fourth Oil Pump is the Melling M-67A this pump only fits in the 1964 Ford 223 six cars with a V engine code & all the 1964 Ford F100, F250, F350, and bigger Trucks with a 223 six with a J engine code or the 262 six with a B engine code. Best of luck