Question is too open ended with not enough variables defined: is this static shooting, weight of the gun, muzzle break used, field or competition???
For ME, non-competition shooting:
If sighting in a new scope, sights or testing new ammo I use bags front and rear. IMO it eliminates some variables. If I had a heavy rifle rest I’d probably use that. In practice I use bipods on just about all my rifles. No deer is going to wait for the bearers to set up sandbags! If a rifle/bipod is setup and used correctly it shoots as good as bags for practical use.