Sabíamos que éramos el equipo más débil, así que nos damos con un canto en los dientes por haber llegado a la semifinal.

[details=“English Translation”]We knew we were the weakest team, so we’re grateful to have reached the semi-final.
[/details]

darse con un canto en los dientes
(idiomatic) to thank one’s lucky stars

https://en.m.wiktionary.org/wiki/darse_con_un_canto_en_los_dientes#Spanish