Why is this even a question?
The apostles prayed to the same God that Jesus prayed to.
If you are implying that their saying "You, Lord, who know the hearts of all men," correlates to Jesus, then they are asking Jesus to help them decide. But they knew that Jesus prayed to his Father, Jehovah to direct his choosing of the apostles, so why would they do any different?