I sympathize with you, but Boeing never had a chance if one goes purely by cost: benefit comparisons.
The only way they could have won this is if they lobbied enough for the Brazilians to look past the significant shortcomings of the Boeing aircraft. And I think even then their lack of cooperation when it comes to transfer of technology and offsets would have sabotaged the deal.
Brazil already has a very reliable civilian aircraft maker in Embraer, and they are looking to bootstrap them into defense through transfer of technology. Boeing never would have done that.