Optimal feeding is optimal swimming for all P\'eclet numbers