They never actually kiss on screen, though the show comes close more than once.
Cosmo and Tails are written as a clear pairing, and the series builds genuine affection between them across the third season. The moments that approach a kiss are staged and then interrupted or deliberately left ambiguous.
Sonic X is a children's action series, and the romance is kept light by design. The implication does the work that an explicit scene would not need to — which is why fans remember it as more definite than it technically is.
If you are looking for the exact episode, there is not one to point to. The near-misses are spread across the season rather than concentrated in a single scene.