Answer based on context:

In the counties of Hamadan province, the Hamadan county (which mainly includes Hamadan city), 70% of the people are Persian people, 22% Azeri people and 8% Lurish, Kurdish people and Laki language. In Hamadan city, 97% of the people identified their language as Persian language and 3% other languages. The population of Nahavand was 184160 (in 1997) with approximately 99% speaking Luri and Laki. The population of Malayer in 1997 was 297062 and approximately 45% speak Persian, 45% Luri and Laki and 10% Azeri language. The population of Tooserkan county was 118945 in 1997 and the majority of the population is Luri and Laki. Alongside a minority of Azeri language of 22%. In Asadabad county, the population was 110077 (in 1997) and 63% were Persian, 19% Kurdish, 14% Azeri and 4% Luri and Laki. In Kabudarahang, the population in 1997 was 152318 with 90% speaking Azeri, 5% Persian and another 5% Kurdish.  In Razan county, the population was 123790 (in 1997) with 99.47% of the residents speaking Azeri and 0.53 speaking Kurdish. In Bahar country was 127600 with 86.3% speaking Azeri, 7.9% speaking Kurdish, 4.5% speaking Persian and 1.3% speaking Luri.

Which location had a larger population, Nahavand or Malayer?
Malayer