California Rule of Court 2.550 --
X County -- if both parties, landlord and tenant, reach a stipulation/agreement in an eviction case [usually written in court on the day of trial], the parties can agree to seal the court's file [make the entire file, including its existence, non-public]. The court will un-seal the record [making it public again] only if the tenants don't perform. This is good for tenants, obviously, because future landlords, when screening these tenants' rental applications, will not find the previous eviction on their record. It is good for the "current" landlord, because tenants are more likely to agree to move out, and are more likely to actually move out on the date specified. It is not good for future landlords, because the eviction won't be listed in the public records, denying the future landlord the ability to make an informed decision on whether to rent to these tenants.
Y County -- for eviction cases, this county won't make the court's file non-public without a motion and a hearing, and a really good reason. Therefore, tenants are less likely to want a stipulation/agreement unless it does not include a judgment. Most landlords want a judgment. Therefore, despite most eviction judges wanting the parties to settle, cases are more likely to go to trial.
This is one of many reasons why it's important to know what the courts are allowing in each county, before opening settlement negotiations in a case.