Putting

aside since there are many different ways to get that border pop, the default order for me is Granary

food

, Forge

hammers

, and then a building that deals with

gold:/

/

) - the courthouse being only one of these (and often not the first one).
Would you care to enlighten me on what that mechanic is?
Not too long ago I started cutting back on early courthouse building in favor of using several of the following mechanics:
- Vertical growth. A large city working multiple villages or towns will pay for its own maintenance and then some. Granaries double the growth rate, putting more cottages to work sooner, and it can also be used to whip things later on, including the courthouse.
- Vertical growth. An HR unit will increase the happy cap and vertical growth, thus putting more cottages to work. Plus, it's a unit.
- Trading for a happiness resource to support vertical growth instead of paying to maintain another unit in each of your cities
- Trading surplus resources for

- Currency adds another trade route which helps to offset costs. Discovering currency will immediately benefit all of your (connected) cities.
- Intentionally failed wonders

hammers: -->

).
- One market in the right city can offset the expenses of multiple cities.
- Building wealth. To build a courthouse you first need to invest 120

and x number of turns paying full maintenance, and when you're done, you STILL need to find a way to pay for maintenance. Building wealth on the other hand will generate gold immediately and cover expenses immediately.
- Specialists. A library with scientists frees up the slider to pay for maintenance. A temple creates a priest or merchant generates

immediately as well; settled priest or merchant in a city with a market multiplies this

output.
There are more, and many have already been mentioned, but all of these things have one thing in common: Instead of trying to reduce costs with a courthouse, they are ways to increase income. Because you can cut the costs but if you don't have income you're still losing money. So you might as well go for what produces income first, and later when your cities are bigger you can work on those courthouses.