Both standards are very inportant to piping system.
B16.5 is regarding various flanges under 24 in, such as weld neck flange, So.flange and lap joingt flaned. Most useful parts of the standard is the flange dimensions.
B16.9 is regardsing various pipe fitting, such as elbows, tee and reducers with butt weld ends. similar to B16.5, the most impant and useful parts of the standards is fitting's dimension.
even though both of standards are related to pipe fittings, they focus on differnent pipe components, flange and butt weld fittings.