Some people don’t think Rahab was a prostitute.
She may have been a inn-keeper that allowed prostitution to be carried on in her establishment.
https://confidenceandjoy.com/was-rahab-a-prostitute/
That seems to be a distinction without a difference.