Mikel Oyarzabal and Ayoze Perez scored to give Spain a 2-1 win over hosts Denmark on Friday to secure top spot in their Nations League group and a place in next year’s quarterfinals.