If you look at the data, the main reason why people detransition is not because "transition wasn’t right" for them.
Turban et al. found in 2021 that among the people who have detransitioned, the vast majority of them (82.5 %) cited external factors for detransitioning such as pressure from parents (35.6 %), other family members (25.9 %), partners (20.2 %) or friends (14.2 %), societal stigma (32.5 %), difficulty to get a job as a trans person (26.9 %) or pressure from employers (17.5 %) as opposed to 15.9 % citing internal factors with only 1 % citing not being able to identify with the gender they had transitioned to, 2.4 % having doubts about their gender and 10.5 % citing having fluctuations about their gender.
And I would even say that only that 1 % could fit in that definition of people who detransitioned because "transition wasn't right for them", as having doubts or fluctuations about their gender can mean something else (like transitioning to something else like non-binary or gender-fluid).
So the vast majority of people who have detransitioned did it because of how hard it was made by transphobes to live their lives as trans people, not because the transition wasn't right for them.
It's kind of a self-fulfilled prophecy where transphobes make trans people's lives so hard that some of them are not able to bear with it anymore so they have to detransition and then transphobes say "see, they had to detransition because they regret having transitioned, hence transitioning is wrong".
It's the same kind of self-fulfilled prophecy as those LGBT+-phobic people who say they wouldn't want to have LGBT+ kids because they would be less happy, but the only ones trying to make LGBT+ people's lives miserable are those phobes themselves.