Then how is it "wrong"?
I have complained to Ofcom in the past. To my recollection that was around 15 years ago. They also used their guidelines to justify their particular view. When I looked up the name of the person at Ofcom who had replied to me he was an ex BBC employee.
The term "regulatory capture" springs to mind.
Er, well as I just explained, 15yrs ago there was a different complaints procedure involved, and I believe the Board of Governors would have been involved in those days? The 'BBC Guidelines' have been in existence for many years now, but AFAIK the regulation has changed a lot since then.
I think the BBC Guidelines are separate and distinct from Ofcom's actual role, but of course they'll be saying similar things. The final arbiter for serious complaints though, will certainly be Ofcom, the govt-appointed body for regulation of the industry, and the BBC and other UK broadcasters are legally required to adhere to Ofcom's rules, which are actually the law.
Also, I think Ofcom is a very different beast from what it used to be, with far more 'teeth' these days.
I'm a little confused by your post though, where you said:
The interesting thing with these BBC indiscretions is that they are directed to follow "guidelines". However the guidelines are not actually compulsory so in reality there is no consequence for ignoring them.
About 15 years back I had an email exchange with a BBC journalist. When I pointed out that they had selectively ignored the guidelines based on their agenda they stopped replying. That case was an example of how the guidelines work. They can be cited to justify a particular angle, and totally ignored at other times with no consequence.
So much for Ofcom and impartiality. Well at least RT get sanctioned for not being balanced and Press TV are taken off the air.One minute you're saying you were talking to a BBC journalist, the next you're saying Ofcom

.
The BBC Guidelines are as far as I know, discretionary, the BBC sets them itself and expects its programmes to follow them, and has its own disciplinary framework to deal with that. Ofcom's rules are actually law, and must be legally adhered to, they override the BBC's own rules if need be.