In sentence 3, if you substitute as opposed to, you must also change the verb:
I think I'd like to stay at home this evening, as opposed to going out.
In sentence 4, you would be better to use "compared to". You have correctly identified another slightly different meaning for the phrase "as opposed to".