You can't expect support if you don't tell anyone, and what happens if you get into a tough social situation and they see your struggles? They wouldn't be happy with you then.
A practical example of this: My daughter is a data analyst, and being an Aspie, she is really, really good at it. Until recently she worked for a very large (think, 200,000 employee) company as part of their analytics team.
The analytics team was highly socialised and most members of it had been there many years so had formed their own cliques. When she joined, she tried to be friendly but they basically ignored 'the newbie', so she settled down to get on with the job, which the rest of them resented because she undermined their comfortable laziness. She was frequently told she needed to socialise with the team, but being an Aspie, she didn't know how if they wouldn't let her in. Bear in mind here that there was no suggestion made to the team to let her in, she was just expected to figure it out like almost any NT would.
Because she couldn't they decided she didn't fit in, and even though she had single-handedly done the entire company's gender pay gap reporting, including figuring out the data sources, creating all the analytical and modeling tools, and developing all the methods and report structures, on her own, with no guidance (last year being the first year of statutory gender pay reporting), they decided when they were restructuring, that it was her job that would be cut. Her managers knew how she had performed in the role she had, but her face didn't fit because she didn't conform to everyone else's rules.
Incidentally, for this year's gender pay gap reporting, they have assigned a team of 4 analysts to replace her.
If she had told them she was on the spectrum, it would have removed any expectation of her joining in the social structure, and helped her managers target her workload better. She would not have lost her job, because in making her redundant, they were unfairly dismissing her and discriminating against her.
Disclosing couldn't have made her any more vulnerable than losing her job.
Ultimately, the choice to disclose or otherwise, depends on the nature of the situation.