What if there was no job posting with a defined salary for A or B?
Sounds like lose-lose.
If you're not hiring for that job, why are you telling Bob that he'd be really well suited there?
If you're not hiring for that job, why are you telling Bob that he'd be really well suited there?