#No it is not.
No it is not.
The details explicitly say 'rather than making an opportunity attack'. However, either an opportunity attack or the players spell would use up the one reaction per turn.
PHB p170
When a hostile creature's movement provokes an opportunity attack from you, you can use your reaction to cast a spell at the creature, rather than making an opportunity attack.