Yes, it is.
Especially with the examples quoted, all the more so. Older question is not clear and OP didn't revise to make it clear. Only answer to that is based on a supposition of OP's intent. Newer question is clear in intent and has a detailed answer (with a bounty awarded )
Marking the older question duplicate of the newer one would benefit those who land up at older question.
Timeline doesn't matter - what matters is that a clear question with upvoted / accepted answer remains with other question being marked duplicate. If both of them have good answers and questions are similar in content, it should be flagged for merging
( This is my understanding from moderators in chats)