Hi @AS
Here is how you can do it.
Workflow:

1. Using formula tool to create 09- flag column.
2. Using summarize groupby ID, count rows and 09- flag sum.
3. Using formula if row count > 1 and 09- flag sum > 0 then B else A
4. Using find and replace to map the comments to data.
Hope this helps : )