My understanding is that the alleged link between testosterone replacement therapy and prostate cancer has very weak evidence: https://www.health.harvard.edu/mens-health/appropriate-use-o....
“The study was limited to men with hypogonadism who had a low risk of prostate cancer, so it's not clear how TRT may affect higher-risk men or those who use testosterone in higher amounts, for longer periods of time, or for treating other conditions.”