For districts, teacher pay can't always be a top priority