BVR engangements are happeneniing when the shooting side discovers the targeted side first. If they don't, it is visual range again. Obviously low observability aircraft, e.g. a F-35 or 22, have an advantage here. But then the other side can have AWACS to guide their attackers. And let's not forget, jets like a Rafale of Eurofighter, or even a F/A-18, have smaller radar signatures than a F-15. An once the stealth aircraft fired their BVR shots, everybody knows where they are. And, given that BVR kills are not instantly, the other side has a window to close in enough to shoot back.
The Phantom (?) initially didn't have a cannon. Why? Becaise before Vietnam everybody thought dog fighting to be obsolete. Then the US Navy created Top Gun, becaise it turned out dog fighting very much did happen. Same for BVR, and as soon as the other side is stealthy enough to be only discovered up close, well, all engagements are going to happen at visiual range again anyway.
Not to forget, a F-22 or F-35 carrying serious load outs, tanks l, missiles, bombs, is pretty mich non-stealthy any way.