I left my hip replacement far too long (it was a very slow degeneration) resulting a lot of muscle mass loss in the affected leg. I had no pain but I suffered from ever increasing mobility issues over a 10 year period and by the end was not able to walk 1/2 a mile without being exhausted
My physio said that ideally pre-surgery I needed to go in with as much mobility as possible so that my recovery would be quicker, so earlier the surgery the better.
In my case I made a full recovery of the replaced hip and started running after 6 months and after a year was running better than 7 years ago. However the last 6 months pre surgery (delayed by Covid) I was walking so badly I ended up slightly wearing my other hip. SO far its holding up and hindsight is wonderful
Everyone is different of course.