1. Rxd7 this deflects the queen from guarding the f8 square and also threatens h8 mate through the queen.
1… Qc5 2. Qg7#
1… a6 2. Rxe7 Rxe7 3. Qf8#
In conclusion it might be Rxd7
That's correct, Rxd7 mates in 5.