[1] by the US, Iran has used it more with more success.
https://en.wikipedia.org/wiki/AIM-54_Phoenix#U.S._combat_exp...
In the case of the US involved conflicts it was working with allies and fighters lacking modern IFF that made the likelihood of friendly fire or collateral losses unacceptable to them.
It's a matter of acceptable risks. The AIM-54 was designed with a world war III in mind, employed in the middle of the ocean in closed airspaces were unidentified contacts could be treated as hostile with minimum political consequences.
The point I was making is here is an example of a time a major force decided not to use their prime BVR missile because of target identification concerns.
[1] https://en.wikipedia.org/wiki/AIM-120_AMRAAM#United_States_o...
> The two F-15s now initiated a visual identification (VID) pass of the contact.
> Wickson's VID pass was conducted at a speed of about 450 knots (520 mph; 830 km/h), 500 feet (150 m) above and 1,000 feet (300 m) to the left of the helicopters.
Now I am not saying there is no room for BVR, ofcourse there is. The 2 tracks in formation coming from Russian airspace pinging you with their Russian military radars are definitely Russian fighters. But there are also a lot of times where there has to be a visual id.
A military jet with it's radars turned off is almost impossible to tell apart from a civilian jet based on radar data alone, and everyone errs on the side of caution, of course the side of caution occasionally is to fire first and id later[2][3].
[1] https://en.wikipedia.org/wiki/1994_Black_Hawk_shootdown_inci... [2] https://en.wikipedia.org/wiki/Iran_Air_Flight_655 [3] https://en.wikipedia.org/wiki/List_of_airliner_shootdown_inc...
And the reason it wasn't used much wasn't just ID issues, but cost. It was supremely expensive, in limited stocks. Why use it against an Su-22 in the Gulf of Sidra? Or waste it over Iraq?
Unaided pilot vision is unlikely to spot a target at 22 miles without some type of guidance.