A gift card is always worth less than cash, how much depends on various factors.
At least 5% (rewards and inconvenience) but closer to 10-15% in my experience.
For a 20% discount on stores I use regularly I’ll get the gift card (usually buy $50 get $10 free).