Any Advice For A 49 Year Old Looking Into Having Knee Replacement Surgery?

My knee has hurt for years and the cortisone shots are not making any difference? I’m seeing my doctor latter today, but would appreciate advice from the community.