Both Wales and the Republic of Ireland were minutes from hosting a World Cup play-off final on Tuesday – only for near-post headers and penalties to be their undoing