Two men sat side by side in a hospital ward, and at a glance it was clear they had something in common.