Try to avoid imitating someone else’s work. You didn’t get to hear all the iterations their work went through, plus you are combining a learning exercise with a creative task. Sure you can learn from being creative but when you are stalling (like an engine stalling) it is good to get clarity of purpose.
So for example, when I was getting up to speed with current pop production there are a few things to consider:
I don’t have their gear
What I hear now, they were doing 3 - 9 months ago at least
Often they create tracks with a team of writers, producers and engineers, each with a load of experience
I still don’t have their gear
I realised that to learn, I don’t need to do whole tracks. I just needed to identify the new or unique bit, the thing that drew me to it. I could then just do that bit, learn the technique (whether it was synthesis, effects, editing technique or performance). That allowed me to learn faster, to go through a lot of songs, a lot of producers, engineers, writers etc.
Pretty soon you are caught up with where they were 3 - 9 months ago. Then you start creating stuff based off of your new knowledge, you start anticipating trends, being ahead of trends. At some point you are creating stuff at the same time time they are producing similar on trend stuff... ie you are now ahead of the listener’s market and level with the creator market. Eventually comes a point where your music is ahead of where they are.... and it all comes from doing focused learning exercises.
In other words, save emulating the songs you hear for learning exercises, just doing the new, unique attractive bits. Much like the draft writing exercise, it is liberating.
When you are creating new, original songs, create your songs, not a pale imitation... I say pale because you already idealise the song whose style/sound/perspective you are being influenced by... matching up to that is an almost impossible task. You are asking yourself to be as fresh as the idea was when you first heard it, even though that can never be. How can you remotely hope to be happy with that? It is an old idea as soon as you hear it. Sure, hearing the original can still feel fresh and inspiring, but never as much as those first hearings. It is one of the reasons that it is very rare for a cover song to be as good as, never mind better than, the original.
So, learn about style, technique etc as best you can within those focused tasks, and focus on creating new, original track using your unique perspective and combination of skills, which no one else has. No one.