Verse 27 does not say anything about anyone perishing. Scripture is clear:
I give them eternal life & the shall NEVER perish.
vs 27 does not contradict.
Should not perish, but have everlasting life!
Verse 27 tells who God holds in His hand and why they will no perish and verse 27 says nothing about eternal security.
Men are faithful in their hearing and following Christ and God in turn is faithful to those sheep in not allowing them to be snatched out of His hand.
Therefore the reason you omit verse 27.