Obok is literally side by side. The wardrobe is obok bookcase, but przy wall. But mostly it is set expressions and personal preference.
So if it is personal preference, why is it next to and not near. These are both relative terms, as the moon can be both said near and next to the Earth.
Correct me if I'm wrong, but I thought the genitive form of on was go or jego.
niego is third form , we use n.... forms of pronouns after prepositions. ( declension of jego in Polish- English version does not have niego.
Also http://www.skwierzyna.net/polishgrammar.pdf has on page 22of the file CASE FORMS OF PERSONAL PRONOUNS.
Personal pronouns show a full range of case forms, summarized in the following chart. Longer forms jego, jemu ciebie, tobie, mnie are emphatic, and occur automatically after prepositions. Also after a preposition, forms beginning in i or j lose j and take a preceding ni-: bez + jej = bez niej, dla + ich = dla nich.
Is this sentence always taken or said in a literal sense? Or can it be metaphoric as in "she is standing by him" meaning "she is supporting him" or "she is agreeing with him"?
It seems to me that only literal. Maybe 'przy nim' could have the double meaning, but still that wouldn't be my first interpretation.
If this is only literal the English should be she is standing beside him because standing by him has the sense of supporting him to a native speaker i think
I was told by a native that 'by' can also have the literal meaning here. Well, it's only an accepted option anyway.
iso174941 is correct that it should be "beside". To a native speaker of English, "standing by him" has the sense of not rejecting him and supporting him when he is in trouble - you often hear it used about the wife of a politician accused of some crime, sexual or otherwise!
We can say standing by him as an equivalent to standing beside him, the problem here is that this is a phrase-by-phrase translated sentence, where our experience suggests the meaning intended is 'support'.
Well, "near" is quite vague and prone to interpretation. Depending on what you compare it to, it can also mean that she is standing 10 metres from him. While "obok" is really right next to him.
As had been said in a country western song of the same name, Stand by your man. Be there in a time of stress or need as opposed to next which is spacial.