Both destinations are similar. Alicante might have a bit more charm as a city, slightly better sandy beaches with warmer seawater, and be a bit less suffocating in summer (but warmer in winter). On the other hand, Malaga might have a bit more galleries and museums to visit.