I think you have Shimano MT520 brakes on your Rail 9.7. Those are brakes with 4 pistons that require the right pads.
Shimano have different types of brake pads, so you need to buy the right ones or they won't work. For instance, pads for 2-piston brakes are no good.
They offer different versions that'll work for you:
- D01S (Resin/organic)
- D02S (Sintered)
- D03S (Resin/organic)
- H03A (Resin/organic, with fins)
And there are probably more. Also, other companies offer compatible pads, Swissstop, BBB, Galfer etc. Just make sure they have the same shape.
Sintered pads last longer and have more braking power, but they can be noisier (especially in the wet).
I always buy the sintered D02S, I've tried the ones with fins but didn't feel any noticable difference except a hefty surcharge. So no, in my opinion the fins aren't worth it...