The book I am searching for is a YA contemporary novel wherein the heroine has an ongoing academic rivalship with a male classmate, which eventually turns into something more even though she already has a boyfriend. I think the book was published in the range of 2017-now. The book cover is black, white, pink, and orange with illustrated faces on it, in a style that in my head is reminiscent of the cover of All Your Twisted Secrets by Diana Urban.
I think this book may be “A Study in Charlotte” by Brittany Cavallaro. The colors of the cover differ slightly from what was mentioned, but otherwise fits the description of YA and about two academic rivals. Additionally, it’s a mystery. The published date appears to be 2016, so again differing slightly than from what was mentioned. Here is a link to the book on goodreads: https://www.goodreads.com/book/show/23272028-a-study-in-charlotte
Hope this is it!
I thought of Today Tonight Tomorrow by Rachel Lynn Solomon (2020), though the cover doesn’t match.