I compare the information to the other (information).
ここでは、情報が二つあるというシチュエーションで考えてみました。
"compare ~" は、「~を比べる、比較する」という表現です。"compare A to/with B" で「AをBと比べる、比較する」ということを表します。
"both ~" は「両方の~」を意味します。この後には通常数えられる名詞が来るのですが、"information"は数えられない名詞なので、おっしゃるように直接持って来ることはできません。そこで、"pieces of ~"("information"を数える際の単位)を付けて、数えられる名詞に変化させます。
2番目のセンテンスは、「その情報をもう一方(の情報)と比較します。」と訳すことができます。
"the other ~" は「(二つあるうちの)もう一方の~」を表します。この後の"information"は、文脈上入れなくても明らかなことと、前にすでに出ている"information"との重複を避ける為に、省略することができます。
是非この表現を使ってみて下さい。
compare both pieces of information
compare the two sets of information
compare both sources of information
「両方の情報」を正しく表現するには、pieces や sets などの助数詞を使ったり、文脈に合わせて sources(情報源)や both of the options(両方の選択肢)と言い換えるのが一般的です。
・pieces of information
compare both pieces of information
(両方の情報を比較する)
・sets of information(まとまったデータや情報群を比較する場合)
compare the two sets of information
(2つの情報群を比較する)