〜ことにする vs 〜ことになる
〜ことにする indicates a conscious, voluntary personal decision made by the speaker. In contrast, 〜ことになる indicates that an outcome, rule, or change was decided externally by circumstances, another person, or a group decision, presenting the result as an objective reality. Swapping them shifts the statement from a deliberate personal choice to an externally arranged situation.
〜ことにする decide to
毎朝、三十分ジョギングすることにしました。
体のために、甘いお菓子をやめることにする。
〜ことになる it has been decided that; it turns out that
来月から、大阪の支社へ転勤することになりました。
会議の結果、来週のイベントは中止することになった。