Malaga defeated Primera Liga rivals Getafe 2-1 on Thursday in their first leg in the last 16 of the Spanish Copa del Rey knockout competition. First half goals from Apono and Edinho put Malaga ahead against the run of play. But Getafe pulled a vital goal back when home substitute Stepanov scored an own goal after 67 minutes. The former Porto player turned the ball over his keeper while trying to stop a run from Getafe forward Juan Albin. Earlier in the day, second division sides Rayo Vallecano and Hercules secured narrow wins over Primera Liga rivals. Rayo beat Mallorca 2-1 in a snowy Vallecas Stadium in the south of Madrid. Michel scored for the home side after 16 minutes and although Julio Alvarez equalized for Mallorca five minutes later, the home side was reduced to 10 men before half time after Mattoni was shown two yellow cards. Two minutes before the break, Collantes finished off a pass sent over to him by Michel. Mallorca held firm with 10 men in the second half and will fancy their chances of overturning the result in the return leg. Finally promotion chasing Hercules will take a slender lead to Pamplona after defeating Primera Liga side Osasuna 2-1. The Alicante based outfit opened the scoring after 17 minutes when Cristian finished off a flowing move. Galan equalized for Osasuna six minutes into the second half but Asier Del Olmo scored the winner with 26 minutes left on the clock. Wednesday's Cup games saw Deportivo la Coruna win 2-1 in Valencia, while Racing Santander defeated Alcorcon 3-2. Villarreal drew 1-1 away to second division side Celta Vigo, while Recreativo Huelva humiliated Atletico Madrid 3-0. Sevilla beat FC Barcelona 2-1 in the Camp Nou Stadium on Tuesday night. The return lags are played next week. 