The difference is the shell material and appearance.
1 Shell material
HRM-300-126S(40) : Stainless steel
HRM-300-126B(40) : Brass
2. Appearance
Outer design and outer dimensions are different slightly because of
manufacturing process difference.
However, they are interchangeable.
Mating parts and PCB mounting poles, pitch, electrical/mechanical performance are the same.