と・や: the difference
とN5
Meaning
And
Past papers
Tested once in past papers
Example
魚とバナナ。
Fish and bananas.
やN5
Meaning
Things like, And the like
Past papers
Tested once in past papers
Example
コンビニでお水やおかしを買った。
I bought things like water and snacks at the convenience store.
How to tell them apart
「と」 is a complete list: if you say 「リンゴとバナナがある」, the listener assumes those are the only two fruits.
「や」 gives a few examples and hints there are more: 「リンゴやバナナなどがある」.
The other party in a two-way action (結婚する, 喧嘩する, 話す) also takes 「と」: 「田中さんと結婚した」.