I am really not sure how / what to ask, but ill try my best...
Can I some how tell Wordpress (in the index.php file maybe):
If A Then load page Y with his matching template (which you always know so well which is it) and if B load page Y with his matching template (which...)?
I mean something like maybe setting the front page by my condition... let wordpress then set the query and the right template and everything.
Another way to say it is:
I want to tell Wordpress: you know if i was setting the front page (through the admin settings -> reading panel) to page titled "page1" you would have show it on the front page handling the page data, template and everything needed on the main url. now i want you to do the same but if something happens (let's say the user is logged in or no matter what kind of and "if" condition is running) do it with another page titled "page13" and if another thing happens do it with another page titles "page5"...