Flow control with pressure compensation