Prove that a circle constructed with the side $AB$ of a triangle $ABC$ as a diameter touches the inscribed circle of the triangle $ABC$ if and only if the side $AB$ is equal to the radius of the exircle on that side.
Problem
Source: 2017 Oral Moscow Geometry Olympiad grades 10-11 p4
Tags: geometry, incircle, excircle, exradius, tangent circles