Except that the X and Y in battle 1 are the same as the X and Y in battle 2. Battle 1 takes place in grass, Battle 2 takes place in hail. The move is secretpower. Now the Pokemon has to be able to hit ghost types with a normal move so it must be a Pokemon with scrappy.
How on earth could it be...