If the text i am printing from that element is the correct the code just passes over it
for items2 in ListaPlajePariuri:
NumePlaje = items2.find_element_by_class_name(
'KambiBC-bet-offer-category__title js-bet-offer-category-title')
TotalGoluri = items2.find_elements_by_class_name(
'KambiBC-bet-offer-subcategory KambiBC-bet-offer-subcategory--overunder')
print(NumePlaje.text)
if NumePlaje.text == 'Timp regulamentar' :
input("why will you not work?")
NumePlaje.click()
here is a printscreen with the output from print(NumePlaje.text), which seems to be good

print('|%s|' % NumePlaje.text)if 'Timp regulamentar' in NumePlaje.text:. This way it wouldn't matter what else is inNumePlaje.text.