I know that it's easy to make a unity gain buffer with an op-amp (as a voltage follower):
simulate this circuit – Schematic created using CircuitLab
I also know that it's easy to make an inverting buffer with an op-amp (an inverting amplifier with \$R_1 = R_2\$):
However, the accuracy of this inverting amplifier depends on the precision of \$R_1\$ and \$R_2\$ - if they're not closely matched, the output will be a bit different from \$-V_{in}\$.
Is there a way of making an inverting buffer with an op-amp that doesn't depend on the precision of these resistors, like the voltage follower? Is it a better idea to get higher precision resistors?