The contract is 6♠, so Declarer can afford to lose only one trick.
There are two possible losers, one in ♥s, the other one in ♣s.
Declarer can not discard a ♣ loser because the red suits are of equal (3-cards) length in both hands. In the ♥ suit he can finesse the Q♥ in either direction. This will have only a 50% chance of success. Is there a
better way ?