Regardless of how they affect adaptations, alleviating the pain will be more important.
From what I’ve read, part of how adaptations are initiated is the signaling that happens via inflammation. So if we accelerate recovery, then we lower inflammation and dampen the signal.
So it depends on the priority. Shortly before a race, or during a stage race, fitness cannot be gained, so recovery and being ready for the event is much more important. At that point, it makes sense to use ice baths, etc. Months before, when training is the priority, recovery tools may not be a great choice.
But again, pain is a worse choice. I would fix that first.