Enforcing a Squash merge on Azure DevOps Pull Request using GitPullRequestCompletionOptions
You could use a policy that enforces this.
If you go to branches in DevOps, select your branch -> policies you can allow only squash merges:
This should make all pull requests into the branch bound by the policy to be done using squash merge.
Here's how it works for Set auto-complete: