While the bearings appear different, they are more similar than you imagine. If you look closely the "open side" on the lower set is there, it's just in a different place. As Andrew S. pointed out both are likely angular contact bearings of similar load ratings, and functionally alike.
But what matters, is how bearings fit the frame and fork, and that's determined by the EXTERNAL dimensions, not the internal workings. What matters are the seating and centering cone angles, internal and external diameters, and the heights. From the photo, I would say these are not a match, but they might be, so compare carefully.
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.