Either of them could be written by AI, but the Sample A seems more likely to be it. Sample B could be it too, but it looks more like a low quality non-native writer to me. Either that, or a good AI output on Sample A, ChatGPT or similar and