1, which is legal.
2. Legal basis:
Article 126 of the Contract Law stipulates that the parties to a foreign-related contract may choose the applicable law for handling contract disputes, except as otherwise provided by law. If the parties to a foreign-related contract have no choice, the laws of the country most closely related to the contract shall apply.
Chinese-foreign joint venture contracts, Chinese-foreign cooperative operation contracts and Chinese-foreign cooperative exploration and development contracts in People's Republic of China (PRC) shall be governed by the laws of People's Republic of China (PRC).
Foreign relations law
Article 9 The foreign laws applicable to foreign-related civil relations do not include the laws applicable in that country.
Article 10 The foreign laws applicable to foreign-related civil relations shall be determined by the people's court, arbitration institution or administrative organ. If the parties choose to apply foreign laws, they shall provide the laws of that country. If foreign laws cannot be determined or there are no provisions in domestic laws, the laws of People's Republic of China (PRC) shall apply.
Article 18 stipulates that the parties may choose the applicable law of the arbitration agreement through agreement. If the parties have no choice, the law of the place where the arbitration institution is located or the law of the place of arbitration shall apply.
3. Note that no matter how agreed by both parties, the landlord can bring a lawsuit to the China court.
Legal basis: Article 224 of the Civil Procedure Law stipulates that a lawsuit arising from a contract dispute shall be under the jurisdiction of the people's court of the defendant's domicile or the place where the contract is performed.
This is a mandatory provision and cannot be excluded by agreement.