And I do believe that a switch structure is faster than a bunch of if/else blocks.
switch ($landingpage) {
case "page1":
$chunk = "chunk-for-page1";
break;
case "page2" :
$chunk = "chunk-for-page2";
break;
case ...
default:
$chunk = "default-chunk";
break;
}
return $modx->getChunk($chunk);
Even simpler, if your chunks are named appropriately, you could just do
return $modx->getChunk("chunk-for-" . $landingpage);
Or, unless you are using the same block for more than one "landing" page, just use a TV.