Costa scored Atlético's equalizing goal in the domestic cup final clash against city-rivals Real Madrid on 17 May 2013,[24] contributing to the 2–1 triumph – the first in 25 games in a streak stretching back to 1999 – and the tenth win in the tournament, confirmed by Miranda's extra-time header. Thus, he became the topscorer of the tournament with eight successful strikes, one ahead of Cristiano Ronaldo in the Madrid derby, he scored the only goal of the game to record a second win over Real at the Santiago Bernabéu in under five months On 19 February of the following year, in the first knockout round's first leg, he scored the game's only goal at A.C. Milan, netting seven minutes from time after a corner kick from Gabi;[32] he added a further two in the second match, helping to a 4–1 victory that put Atlético into the quarter-finals for the first time in 17 years